Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have your system administrator add LIBDIR to `/etc/ld.so.conf' #7

Open
liumingzhij26 opened this issue Aug 5, 2016 · 2 comments
Open

Comments

@liumingzhij26
Copy link

`cp ./.libs/donkeyid.so /home/donkeyid-donkeyid-0.7/donkeyid/modules/donkeyid.so
cp ./.libs/donkeyid.lai /donkeyid-donkeyid-0.7/donkeyid/modules/donkeyid.la
; Local Variables:

PATH="$PATH:/sbin" ldconfig -n /home/donkeyid-donkeyid-0.7/donkeyid/modules

Libraries have been installed in:
; Local Variables:
/home/donkeyid-donkeyid-0.7/donkeyid/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  • use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.`

我已经在/etc/ld.so.conf加上了路径,make clean之后,重新编译还是错误,但是可以生成so文件,加入到php.ini中,提示“段错误”

@osgochina
Copy link
Owner

不要加任何路径,编译的时候
cd ./donkeyid
/path/to/phpize
./configure --with-php-config=/path/to/php-config
make
make install

@liumingzhij26
Copy link
Author

liumingzhij26 commented Aug 5, 2016

OS:centos6.6
php: php5.5.37

首先确认一点,我是正常安装,
phpize
./configure --with-php-config=/usr/bin/php-config
make
make install
而且已经生成了donkeyid.so
还是一样的错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants