大家好,就像我的标题说的,“我有问题使用+ PHP5”。保留此手册,但当运行"make“和"make”me时:
/bin/bash /usr/src/saprfc-1.4.1/libtool --mode=compile cc -I. -I/usr/src/saprfc-1.4.1 -DPHP_ATOM_INC -I/usr/src/saprfc-1.4.1/include -I/usr/src/saprfc-1.4.1/main -I/usr/src/saprfc-1.4.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/opt/SAP/rfcsdk//include -DHAVE_CONFIG_H -g -O2 -c /usr/src/saprfc-1.4.1/saprfc.c -o saprfc.lo
libtool: compile: cc -I. -I/usr/src/saprfc-1.4.1 -DPHP_ATOM_INC -I/usr/src/saprfc-1.4.1/include -I/usr/src/saprfc-1.4.1/main -I/usr/src/saprfc-1.4.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/opt/SAP/rfcsdk//include -DHAVE_CONFIG_H -g -O2 -c /usr/src/saprfc-1.4.1/saprfc.c -fPIC -DPIC -o .libs/saprfc.o
In file included from /usr/src/saprfc-1.4.1/php_saprfc.h:23:0,
from /usr/src/saprfc-1.4.1/saprfc.c:27:
/usr/src/saprfc-1.4.1/rfccal.h:44:19: fatal error: rfcsi.h: No such file or directory
#include "rfcsi.h"
^
compilation terminated.
make: *** [saprfc.lo] Error 1发布于 2015-03-06 12:07:14
尽管这是一个老问题,但我最近在一个Ubuntu14.04盒上安装了SAPRFC,其中包含了PHP5.5.9。当我在路上发现一些问题时,我想分享一下我的经历。
Requeriments:RFCSDK6.40非Unicode 64位(必须从Service下载)。
1.-提取"/usr/sap/ RFCSDK“中的rfcsdk
2.-在某个地方解压"saprfc“(http://saprfc.sourceforge.net/),即"/root/saprfc”
3.-安装依赖项
apt-get install libstdc++54.-编辑文件“皂rfc.c”第47行,(在这里看到的)
change "function_entry" to "zend_function_entry"5.-现在,我们可以
phpize
./configure
make
make install如果没有错误,我们将将编译的文件saprfc.so放在文件夹/usr/lib/php5/20121212中。现在,我们必须告诉PHP在启动时加载库。
cd /etc/php5/mods-available
echo "extension=saprfc.so" > saprfc.ini
ln -s saprfc.ini ../apache2/conf.d/25-saprfc.ini重新启动apache并查看它是否工作:
service apache2 restart使用phpinfo();,我们可以看到:

发布于 2015-08-06 09:47:45
上传rfcsdk 7.20在/usr/local/
上传/usr/local/rfcsdk/lib中的librfccm.so修补程序
在我的根目录中提取了皂甙-1.4.1
下载rfcsi.h (http://www.filewatcher.com/m/rfcsi.h.9944-0.html)并上传到saprfc-1.4.1
编辑文件皂苷file 1.4.1/stirfc.c(第47行将function_entry更改为zend_function_entry )
中,执行以下命令:
phpize
./configure
make
make installhttps://stackoverflow.com/questions/24253362
复制相似问题