[error]LD_LIBRARY_PATH shouldn't contain the current directory
2014-09-12 14:51
197 查看
编译libc执行configure时遇到如下问题:
LD_LIBRARY_PATH shouldn't contain the current directory
执行指令:echo $LD_LIBRARY_PATH,发现并没有指定当前目录。
打开configure文件,查找LD_LIBRARY_PATH,找到如下内容:
# Test if LD_LIBRARY_PATH contains the notation for the current directory
# since this would lead to problems installing/building glibc.
# LD_LIBRARY_PATH contains the current directory if one of the following
# is true:
# - one of the terminals (":" and ";") is the first or last sign
# - two terminals occur directly after each other
# - the path contains an element with a dot in it
因为在环境变量的最前和最后均有一个“:”,程序将此分隔符解释为当前目录了。
解决方法:
执行指令:vi ~/.bash_profile
将LD_LIBRARY_PATH环境变量的形如和末尾的“:”去掉,保存。
执行指令:source ~/.bash_profile
LD_LIBRARY_PATH shouldn't contain the current directory
执行指令:echo $LD_LIBRARY_PATH,发现并没有指定当前目录。
打开configure文件,查找LD_LIBRARY_PATH,找到如下内容:
# Test if LD_LIBRARY_PATH contains the notation for the current directory
# since this would lead to problems installing/building glibc.
# LD_LIBRARY_PATH contains the current directory if one of the following
# is true:
# - one of the terminals (":" and ";") is the first or last sign
# - two terminals occur directly after each other
# - the path contains an element with a dot in it
因为在环境变量的最前和最后均有一个“:”,程序将此分隔符解释为当前目录了。
解决方法:
执行指令:vi ~/.bash_profile
将LD_LIBRARY_PATH环境变量的形如和末尾的“:”去掉,保存。
执行指令:source ~/.bash_profile
相关文章推荐
- LD_LIBRARY_PATH shouldn't contain the current directory when building glibc. Please change the envir
- LD_RUN_PATH && LD_LIBRARY_PATH
- LD_LIBRARY_PATH shouldn't contain the current directory
- 【SystemTap】c独立安装elfutils导致错误 cannot load ld backend library 'libld_elf_x86_64.so' 和 error: C compiler cannot create executables
- [百度空间] ld: add library file reference by path & file name
- Fatal error! type = =kMetaAssetType & pathName.find ("library/metadata")! = 0
- “Init library failed & error:!java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader"问题解决
- openCV图像读取显示 ——pkg-config && LD_LIBRARY_PATH
- Linux 共享库: LD_LIBRARY_PATH 与ld.so.conf
- Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]:
- linux fedora 7 安装出现的 (configure: error: no acceptable C compiler found in $PATH)及 (No curses/termcap library found)处理
- linux下如何设置LD_LIBRARY_PATH
- ERROR: ld.so: object 'libXXX32.so' from LD_PRELOAD cannot be preloaded: ignored.
- 导入项目后 出现Unbound classpath container: 'JRE System Library [jdk1.6.0_04]' in project '项目名'这样的错误
- Error creating bean with name 'userService' defined in class path resource [beans.xml]: Unsatisfied dependency expressed through
- LD_LIBRARY_PATH
- LD_LIBRARY_PATH vs ld.so.conf
- Linux 共享库:LD_LIBRARY_PATH 与ld.so.conf
- linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
- Android SDK 1.5 "--core-library" build error问题解决方法