小编nak*_*aka的帖子

配置:错误:C 编译器无法创建可执行文件

我试图安装 rvm 使用\curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles. 它工作正常,直到出现配置错误:

Error running './configure --prefix=/home/nishant/.rvm/rubies/ruby-2.0.0-p247 --disable-install-doc --enable-shared',
please read /home/nishant/.rvm/log/1379591052_ruby-2.0.0-p247/configure.log
There has been an error while running configure. Halting the installation.
Run Code Online (Sandbox Code Playgroud)

以下是上述日志文件的内容:

[2013-09-19 17:15:58] ./configure
current path: /home/nishant/.rvm/src/ruby-2.0.0-p247
command(4): ./configure --prefix=/home/nishant/.rvm/rubies/ruby-2.0.0-p247 --disable-install-doc --enable-shared
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/nishant/.rvm/src/ruby-2.0.0-p247':
configure: error: C …
Run Code Online (Sandbox Code Playgroud)

bash gcc 12.04 12.10

16
推荐指数
2
解决办法
13万
查看次数

curl: (5) 无法解析代理“hproxy.iitm.ac.in”

我一直在使用代理hproxy.iitm.ac.in。我现在搬出去了,想将配置更改为无代理。关于使用:

curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles
Run Code Online (Sandbox Code Playgroud)

我被提示:

curl: (5) Couldn't resolve proxy 'hproxy.iitm.ac.in'
Run Code Online (Sandbox Code Playgroud)

我不是很精通 Ubuntu(使用 12.10)。拜托,有人可以告诉我需要更改哪些配置才能使用 curl 吗?

编辑:我能够浏览互联网。我也改变了我的 ~/.bashrc 以显示:

export http_proxy="";
export https_proxy="";
export ftp_proxy="";
Run Code Online (Sandbox Code Playgroud)

但它没有帮助

谢谢。

configuration proxy curl

6
推荐指数
2
解决办法
5万
查看次数

无法修复错误“无法纠正问题,您的包裹已损坏。”

我正在尝试安装python-pip. 但我收到以下错误:

root@w.x.y.z:~# apt-get install python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-pip : Depends: python-setuptools (>= 0.6c1) but …
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies software-installation

6
推荐指数
1
解决办法
8705
查看次数