使用SSL RedHat构建MongoDB失败:collect2:ld返回1退出状态

使用SSL RedHat构建MongoDB失败:collect2:ld返回1退出状态,mongodb,ssl,scons,Mongodb,Ssl,Scons,尝试在RHEL6.4上使用SSL构建MongoDB时,我遇到了错误 collect2: ld returned 1 exit status 尝试使用-v for g++verbosity运行失败的行,以获取一些有用的信息,但没有获得进一步的信息。我得到的只是: Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man

尝试在RHEL6.4上使用SSL构建MongoDB时,我遇到了错误

collect2: ld returned 1 exit status
尝试使用-v for g++verbosity运行失败的行,以获取一些有用的信息,但没有获得进一步的信息。我得到的只是:

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix

gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 

COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/

LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../:/lib/:/usr/lib/

COLLECT_GCC_OPTIONS='-v' '-o' 'build/linux2/ssl/mongo/mongotop' '-fPIC' '-pthread' '-rdynamic' '-L/usr/lib64' '-L/lib64' '-shared-libgcc' '-mtune=generic'
...
...
build/linux2/ssl/third_party/yaml-cpp-0.5.1/src/singledocparser.o build/linux2/ssl/third_party/yaml-cpp-0.5.1/src/stream.o build/linux2/ssl/third_party/yaml-cpp-0.5.1/src/tag.o --end-group -lpthread -lssl -lcrypto -lrt -lstdc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crtn.o
(这最后一行占据了2个屏幕,所以我省略了大部分内容,留下了开头和结尾

下一行就是错误:
collect2:ld返回了1个退出状态
。仅此而已


知道如何找出这个错误吗?

找出包boost-devel丢失了。

如果没有忽略的
ld
的输出,就无法判断出哪里出了问题。再次运行
make
(在第一个错误之后),编辑您的问题以添加
ld
的输出(至少是其中的重要部分)。我会打赌一个丢失的-devel包,但没有办法确定。感谢您的快速响应。错误是从
g++
行抛出的。
与此有什么关系?(现在再次运行
scons
获取错误,但需要约30分钟)“谢谢,@Pierre,我是凭你的直觉来判断的,我找不到的是boost-devel。好的,如果你想让你的问题对你有所帮助,请在下面添加一个答案。”。