mac os x 10.8.2下安装最新版本GCC 4.7.2,出现libtool: link for xxx to be removed情况
2012-10-23 19:14
543 查看
下载以下3个文件,还有GCC 4.7.2.
gmp-5.0.5 (关于GMP: http://gmplib.org/ )
mpfr-3.1.1 (关于MPFR: http://www.mpfr.org/mpfr-current/mpfr.html )
mpc-1.0 (关于MPC: http://www.multiprecision.org/ )
按网上其他人的方法,依次安装GMP,MPFR和MPC。
==========================
最后安装GCC,我按他们的方法安装的时候,出现,libtool: link for XXX to be removed. 一直提示删除同一个文件,终端标签栏显示sleep字样,一直等待删除文件。我在FINDER里面找到手动删除,依然无效。于是只能放弃。然后百度找解决方法。
后来在国外论坛看到一个人说:
I know this is old but will post here in hopes that anybody
doing
a search
(which is the Right Thing(tm) ) with this problem in the future
can get the solution.
This is a
bug/issue with libtool.
When you see an endless line of
"Waiting
for somefile.o.lock to be removed"
The usual explanation is that libtool is confused because your build
directory is not on the same file system as that of libtool
(usually for
libtool, /usr).
With Gentoo, the most likely explanation is that you have set
PORTAGE_TMPDIR to duh, a tmp location that is not on the
same
partition as /usr. Short solution: reset POR
ae6f
TAGE_TMPDIR
for this
package only, i.e.:
export PORTAGE_TMPDIR=/var/tmp
emerge whatever it is you are working on and set PORTAGE_TMPDIR
back to it's original location. This behavior should be
fixed in libtool
eventually, but that's a different discussion.
Extended info:
If you are building something manually, many configure scripts allow you
to override the lock check via "./configure --disable-libtool-lock".
Keep
in mind the original purpose of the lock is to prevent error
between
concurrent builds on multi-user systems - if you are in
that
circumstance potentially, use at your own peril.
大致意思是说 ,你的编译目录和你写入东西所在的目录不在一个分区。导致
出现这种问题。是个BUG。这帖子是2003年发的。近十年了,这BUG依然没修
复!解决方法就是使其在同一个目录。也就是你的源码所在文件夹的路径要和你将
要安装的位置在同一个分区下才行。这里我要将GCC安装在/usr/local/gcc-4.7
下面。于是我将源码包解压到/usr下,然后编译在解压后的文件夹下建个文件夹进
行编译。问题解决!!
gmp-5.0.5 (关于GMP: http://gmplib.org/ )
mpfr-3.1.1 (关于MPFR: http://www.mpfr.org/mpfr-current/mpfr.html )
mpc-1.0 (关于MPC: http://www.multiprecision.org/ )
按网上其他人的方法,依次安装GMP,MPFR和MPC。
==========================
最后安装GCC,我按他们的方法安装的时候,出现,libtool: link for XXX to be removed. 一直提示删除同一个文件,终端标签栏显示sleep字样,一直等待删除文件。我在FINDER里面找到手动删除,依然无效。于是只能放弃。然后百度找解决方法。
后来在国外论坛看到一个人说:
I know this is old but will post here in hopes that anybody
doing
a search
(which is the Right Thing(tm) ) with this problem in the future
can get the solution.
This is a
bug/issue with libtool.
When you see an endless line of
"Waiting
for somefile.o.lock to be removed"
The usual explanation is that libtool is confused because your build
directory is not on the same file system as that of libtool
(usually for
libtool, /usr).
With Gentoo, the most likely explanation is that you have set
PORTAGE_TMPDIR to duh, a tmp location that is not on the
same
partition as /usr. Short solution: reset POR
ae6f
TAGE_TMPDIR
for this
package only, i.e.:
export PORTAGE_TMPDIR=/var/tmp
emerge whatever it is you are working on and set PORTAGE_TMPDIR
back to it's original location. This behavior should be
fixed in libtool
eventually, but that's a different discussion.
Extended info:
If you are building something manually, many configure scripts allow you
to override the lock check via "./configure --disable-libtool-lock".
Keep
in mind the original purpose of the lock is to prevent error
between
concurrent builds on multi-user systems - if you are in
that
circumstance potentially, use at your own peril.
大致意思是说 ,你的编译目录和你写入东西所在的目录不在一个分区。导致
出现这种问题。是个BUG。这帖子是2003年发的。近十年了,这BUG依然没修
复!解决方法就是使其在同一个目录。也就是你的源码所在文件夹的路径要和你将
要安装的位置在同一个分区下才行。这里我要将GCC安装在/usr/local/gcc-4.7
下面。于是我将源码包解压到/usr下,然后编译在解压后的文件夹下建个文件夹进
行编译。问题解决!!
相关文章推荐
- 苹果MAC AIR MACOS X 10.8安装notes提示OS版本过低
- 最新Mac OS X 10.12.1 安装cocoapods及使用详解
- 出现“正尝试安装的adobe flash player不是最新版本”的解决方法
- 最新Mac OS X 10.12.1 安装cocoapods及使用详解
- 给Mac安装最新版本的JDK
- 最新Mac OS X 10.12.1 安装cocoapods及使用详解
- Mac下安装最新版本的Graphviz
- mac OS X10.11.5安装scikit-learn后运行出现ValueError: numpy.dtype has the wrong size的错误
- mac安装最新版本的git
- 解决Virtual Box 安装Mac OS X当出现“hfs: summary table not allowed on FS with block size of 2048”问题
- ubuntu 12.04安装最新版本的nmap出现的几个问题分析
- mac x Yosemide(10.10) 下安装 jdk 1.7 (jdk 1.8) 要求Mac OS X10.7.3或更高版本解决
- 安装虚拟机出现的问题——————二进制转换不支持用于Mac OS X后
- (转载)Mac OS X 跟新到10.11后cocoapods安装出现的问题(- bad response Not Found 404 (http://ruby.taobao.org/latest_spe)
- 如何在Mac OS X 操作系统中安装gcc和make
- 升级Mac OS X 和 Xcode的SVN到最新版本
- VMware Workstation 12 Pro 安装 mac最新系统版本10.12.3
- 安装最新MSN8.5时候出现上述提示 “需要安装 Windows Update Agent 5.8.02469或更高版本"的解决方法
- mac安装genymotion出现重新下载版本错误解决
- Mac OS X 10.5:安装 Leopard 后重新启动出现“蓝屏”