下載下列項目:
- re2c(yum install re2c)
- SAPRFC,在這裏下載。
- 從SAP Service Support Portal (軟件下載>支持包和修補程序>其他組件> SAPCAR> SAPCAR 7.10> x64 64位上的Windows Server)下載SAPCAR。下載適用於Windows 64bit的此工具以提取SAR文件。
- 非Unicode SAP RFCSDK 6.20或6.40,從SAP Service Support Portal (軟件下載>支持包和修補程序>其他組件> SAP RFC SDK> SAP RFC SDK 6.40> Linux on x86_64 64位)下載。在Windows 64位中使用SAPCAR進行提取。將rfcsdk文件夾複製到Linux服務器。
- 從SAP Service Support Portal (軟件下載>支持軟件包和修補程序>其他組件> SAP內核> SAP Kernet 64位> SAP KERNEL 6.40 64位> Linux on x86_64 64位>#數據庫無關)下載。在Windows 64位中使用SAPCAR進行提取。將librfccm.so文件複製到Linux服務器。
*使用SAPCAR提取SAR文件:
C:\> SAPCAR_ [版本] .exe -xvf [SAR文件名] .sar
1 2 3 4 五 6 7 8 9 10 11 12 13 14 15 16 17 18 | [root@down ~] # wget http://nchc.dl.sourceforge.net/project/saprfc/saprfc/1.4.1/saprfc-1.4.1.tar.gz [root@down ~] # tar -zxf saprfc-1.4.1.tar.gz [root@down ~] # cp -R saprfc-1.4.1 /usr/src [root@down ~] # mkdir /opt/SAP [root@down ~] # cp -R rfcsdk /opt/SAP/ [root@down ~] # cp librfccm.so /opt/SAP/rfcsdk/lib/ [root@down ~] # cd /usr/src/saprfc-1.4.1 [root@down saprfc-1.4.1] # export SAPRFC_DIR=/opt/SAP/rfcsdk/ [root@down saprfc-1.4.1] # export PATH=$SAPRFC_DIR/bin:$PATH [root@down saprfc-1.4.1] # phpize [root@down saprfc-1.4.1] # ./configure [root@down saprfc-1.4.1] # make [root@down saprfc-1.4.1] # make install [root@down saprfc-1.4.1] # vi /etc/php.d/saprfc.ini (add this line -> extension=saprfc.so ) [root@down saprfc-1.4.1] # service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@down saprfc-1.4.1] # vi /var/www/html/test.php (add this line -> <?php phpinfo();?> ) 從瀏覽器訪問文件test.php,如果saprfc安裝成功,在PHP info頁面saprfc模塊必須顯示如下。 |