这就是我做的:
# Install lua
curl -R -O http://www.lua.org/ftp/lua-5.2.2.tar.gz
tar zxf lua-5.2.2.tar.gz
cd lua-5.2.2
sudo make linux install
# build vim
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial
sudo apt-get remove vim vim-runtime gvim
sudo apt-get remove vim-tiny vim-common vim-gui-common
cd ~
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7-config \
--enable-perlinterp \
--enable-gui=gtk2 --enable-cscope --prefix=/usr \
--enable-luainterp \
--with-lua-prefix=/usr/local/bin/lua
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo make install …Run Code Online (Sandbox Code Playgroud) 当我sudo apt-get install ruby-full build-essential在终端中使用“ ”时,我得到了这个:
$ sudo apt-get install ruby-full build-essential
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/packages.medibuntu.org_dists_quantal_non-free_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
Run Code Online (Sandbox Code Playgroud)
谁能告诉我如何在我的 Linux Mint 机器上安装 Ruby on Rails?
我正在使用Rails,由于某些原因,我不知道每次启动终端时都必须执行以下行才能使用ruby和rails.
source ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)
如果我在运行上面的命令之前输入以下内容,它会建议我安装软件包(即"输入'sudo apt-get install package'来安装")
rails -v && ruby -v && irb -v
Run Code Online (Sandbox Code Playgroud)
有没有办法让我的终端在打开时执行命令?或者,更好的是,任何人都可以帮助解释我必须运行此行的原因吗?我发现一篇文章说我必须这样做,但问题并不能解释原因.
我使用此代码安装了Monaco字体。但是,它没有出现在中Setting -> Editor -> Color and fonts -> Font。我该怎么办?
在Linux Mint 17上运行R 3.1.2,non-zero exit status当我尝试安装流行的软件包时,我得到了一个.示例install.packages尝试的完整输出如下:
> install.packages("plyr")
Installing package into ‘/home/joe_kendrick/R/x86_64-pc-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/plyr_1.8.1.tar.gz'
Content type 'application/x-gzip' length 393233 bytes (384 Kb)
opened URL
==================================================
downloaded 384 Kb
* installing *source* package ‘plyr’ ...
** package ‘plyr’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/include" -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
/bin/bash: g++: command not found
make: *** [RcppExports.o] Error …Run Code Online (Sandbox Code Playgroud) 我刚刚在64位Mint OS(版本17)上安装了Clang 3.5.我正在尝试以32位编译我的程序,但是我遇到了问题.
我test.cpp在我的主目录中调用了一个文件,其中包含以下代码:
#include <iostream>
int main()
{
std::cout << "Hello" << std::endl;
}
Run Code Online (Sandbox Code Playgroud)
然后我运行以下命令:
$ clang++ -m32 -Wl,--verbose test.cpp | grep libgcc
Run Code Online (Sandbox Code Playgroud)
我得到以下输出:
$ clang++ -m32 -Wl,--verbose test.cpp | grep libgcc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: skipping incompatible /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so when searching for -lgcc_s
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so succeeded
/usr/bin/ld: cannot find -lgcc_s
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.a failed
attempt to open …Run Code Online (Sandbox Code Playgroud) 我在Linux薄荷17.3 64位使用R版本3.2.3.我试图安装包"car" dependencies=TRUE,但安装失败,并显示以下错误消息:
> warnings()
Warning messages:
1: In install.packages("car", dependencies = T) :
installation of package ‘minqa’ had non-zero exit status
2: In install.packages("car", dependencies = T) :
installation of package ‘RcppEigen’ had non-zero exit status
3: In install.packages("car", dependencies = T) :
installation of package ‘leaps’ had non-zero exit status
4: In install.packages("car", dependencies = T) :
installation of package ‘lmtest’ had non-zero exit status
5: In install.packages("car", dependencies = T) :
installation of package ‘rgl’ had …Run Code Online (Sandbox Code Playgroud) 当我安装了运行良好的 nginx 时使用 Linux Mint 18.3。由于某种原因我需要卸载它,我使用命令卸载它:
sudo apt purge nginx -y
sudo rm -rf /etc/nginx
sudo apt autoremove
Run Code Online (Sandbox Code Playgroud)
然后当我稍后再次需要它时,我尝试了:
sudo apt install nginx -y
Run Code Online (Sandbox Code Playgroud)
它告诉我以下错误:这是来自终端的所有行:
sudo apt install nginx -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
nginx-common nginx-core
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
nginx nginx-common nginx-core
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 …Run Code Online (Sandbox Code Playgroud) 我在新安装的操作系统 linux Mint 19.3 中将 python3 更改为默认值时遇到了一些问题。在 Ubuntu 16.04 上这很容易,但现在我需要一点帮助。
所以,我跑
python --version
Run Code Online (Sandbox Code Playgroud)
得到了这个
Python 2.7.15+
Run Code Online (Sandbox Code Playgroud)
比我跑
python3 --version
Run Code Online (Sandbox Code Playgroud)
这就是结果
Python 3.6.8
Run Code Online (Sandbox Code Playgroud)
输入这个命令后
sudo update-alternatives --config python
Run Code Online (Sandbox Code Playgroud)
我收到了明显的信息
update-alternatives: error: no alternatives for python
Run Code Online (Sandbox Code Playgroud)
两个版本的 python 都位于 /usr/bin 文件夹中。当我尝试通过键入命令将 python3 更改为默认值时会出现此问题
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6
Run Code Online (Sandbox Code Playgroud)
终端输出如下
update-alternatives: --install needs <link> <name> <path> <priority>
Run Code Online (Sandbox Code Playgroud)
欢迎任何帮助。
电脑:联想Ideapad S145,AMD ryzen 5 3500u。SSD 120gb(SO) + hd1t
我最近在我的电脑上安装了 Linux Mint。而且启动的时候就出现了这些错误。当这些错误出现并打开时,在其他时候这些错误出现并进入黑屏。
请问有人知道为什么吗?