64位linux编译软件注意事项

標簽:is64 linux   瀏覽(392)  日期:2008-08-02

  64位的linux编译软件时最好指定/usr/lib64目录以提高系统性能
  ./configure LDFLAGS=-L/usr/lib64


An attempt to link the coNCePTuaL run-time library on one x86-64 Linux platform aborted with the following error:


     /usr/lib/libpopt.so: could not read symbols: File in wrong format
An attempt on another x86-64 Linux platform aborted with a similar error:


     /usr/lib/libpopt.so: could not read symbols: Invalid operation
The problem on both platforms turned out to be that the /usr/lib/libpopt.so is a 32-bit binary and could not be linked with a 64-bit library. The solution was to configure with ./configure LDFLAGS=-L/usr/lib64 to indicate that libraries should be read from /usr/lib64 instead of the default of /usr/lib64.




-------------------------------------------------
上一篇:postfix转发服务器设置 下一篇:linux下crontab时间的格式说明



  
Are you Bot? How you know that?ofcz no.