简体   繁体   English

安装pg gem时出现问题

[英]Problems while installing pg gem

I need to install pg gem, but the installation failed. 我需要安装pg gem,但安装失败。 I've tried all the solution propesed in other questions but no luck. 我已经尝试了其他问题中提出的所有解决方案,但是没有运气。

Here is my output, and here is my "mkmf.log" file 是我的输出, 是我的“ mkmf.log”文件

Any idea? 任何想法?

[UPDATE] [UPDATE]

I've solved the first problem by putting libs in the correct directory. 我已经通过将libs放在正确的目录中解决了第一个问题。 But now I've another problem: 但是现在我有另一个问题:

find_executable: checking for pg_config... -------------------- yes

--------------------

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/include/postgresql  -D_FILE_OFFSET_BITS=64  -fno-strict-aliasing -g -g -O2 -fPIC conftest.c  -L. -L/usr/lib -L/usr/lib -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic     -lruby-1.9.1-static  -lpthread -lrt -ldl -lcrypt -lm   -lc"
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {return 0;}
/* end */

[UPDATE2] [UPDATE2]

Solved it by putting links to "libgcc", "libgcc_s", "crtend.o", "crtendS.o", "crtbeginS.o" and "crtbegin.o" into /usr/lib 通过将指向“ libgcc”,“ libgcc_s”,“ crtend.o”,“ crtendS.o”,“ crtbeginS.o”和“ crtbegin.o”的链接放在/ usr / lib中来解决此问题

It looks like you are missing development libraries even for glibc. 看来您甚至缺少glibc的开发库。 Just install devel packages for glibc and postgresql and try again. 只需为glibc和postgresql安装devel软件包,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM