bash
[root@ecs-59d4 package]# cd BounceStudioAPI-linux
[root@ecs-59d4 BounceStudioAPI-linux]# ls
BounceStudio.h help libBounceStudio32.so.3.7.0.962 libBounceStudio64.so.3.7.0.962 samples
[root@ecs-59d4 BounceStudioAPI-linux]# cp BounceStudio.h /usr/local/include/
[root@ecs-59d4 BounceStudioAPI-linux]# ls
BounceStudio.h help libBounceStudio32.so.3.7.0.962 libBounceStudio64.so.3.7.0.962 samples
[root@ecs-59d4 BounceStudioAPI-linux]# cd /usr/local/include/
[root@ecs-59d4 include]# ls
BounceStudio.h ltdl.h mcrypt.h mhash.h mutils
[root@ecs-59d4 include]# cd -
/package/BounceStudioAPI-linux
[root@ecs-59d4 BounceStudioAPI-linux]# ls
BounceStudio.h help libBounceStudio32.so.3.7.0.962 libBounceStudio64.so.3.7.0.962 samples
[root@ecs-59d4 BounceStudioAPI-linux]# ll
总用量 1248
-rw-r--r--. 1 root root 2387 4月 12 2019 BounceStudio.h
drwxr-xr-x. 3 root root 36 4月 12 2019 help
-rwxr-xr-x. 1 root root 695956 4月 12 2019 libBounceStudio32.so.3.7.0.962
-rw-r--r--. 1 root root 575472 4月 12 2019 libBounceStudio64.so.3.7.0.962
drwxr-xr-x. 8 root root 90 4月 12 2019 samples
[root@ecs-59d4 BounceStudioAPI-linux]# chmod +x libBounceStudio64.so.3.7.0.962
[root@ecs-59d4 BounceStudioAPI-linux]# ll
总用量 1248
-rw-r--r--. 1 root root 2387 4月 12 2019 BounceStudio.h
drwxr-xr-x. 3 root root 36 4月 12 2019 help
-rwxr-xr-x. 1 root root 695956 4月 12 2019 libBounceStudio32.so.3.7.0.962
-rwxr-xr-x. 1 root root 575472 4月 12 2019 libBounceStudio64.so.3.7.0.962
drwxr-xr-x. 8 root root 90 4月 12 2019 samples
[root@ecs-59d4 BounceStudioAPI-linux]# cp libBounceStudio64.so.3.7.0.962 /usr/local/lib
[root@ecs-59d4 BounceStudioAPI-linux]# ls
BounceStudio.h help libBounceStudio32.so.3.7.0.962 libBounceStudio64.so.3.7.0.962 samples
[root@ecs-59d4 BounceStudioAPI-linux]# ln -s /usr/local/lib/libBounceStudio64.so.3.7.0.962 /usr/local/lib/libBounceStudio64.so
[root@ecs-59d4 BounceStudioAPI-linux]# echo /usr/local/lib > /etc/ld.so.conf.d/BounceStudio.conf
[root@ecs-59d4 BounceStudioAPI-linux]# ldconfig
bash
[root@ecs-59d4 PHP]# cd src
[root@ecs-59d4 src]# ls
config.m4 php_bouncestudio.c php_bouncestudio.h
[root@ecs-59d4 src]# /www/server/php/56/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
[root@ecs-59d4 src]# ls
acinclude.m4 autom4te.cache config.guess config.m4 configure install-sh Makefile.global mkinstalldirs php_bouncestudio.h
aclocal.m4 build config.h.in config.sub configure.in ltmain.sh missing php_bouncestudio.c run-tests.php
[root@ecs-59d4 src]# ./configure --enable-bouncestudio --with-php-config=/www/server/php/56/bin/php-config
make CFLAGS="-lBounceStudio64 $CFLAGS"
make install