谢谢你阅读我的问题。我在我的windows env开发了一个应用程序,在PHP 7 whith oracle数据库。现在我需要在一个Linux的环境中出版。我不是一个环境专家,我花了几个小时在这个环境配置没有成功。
一些环境信息:
PHP Version 7.0.26
Linux version 2.6.32-504.8.1.el6.x86_64 Red Hat 4.4.7-11
我遵循以下步骤:
安装即时客户端
rpm -Uvh oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
rpm -Uvh oracle-instantclient12.2-tools-12.2.0.1.0-1.x86_64.rpm
export LD_LIBRARY_PATH="/usr/lib/oracle/12.2/client64/lib/"
export ORACLE_HOME="/usr/lib/oracle/12.2/client64/"
安装OCI8
sudo pecl install oci8
-bash-4.1$ sudo pecl install oci8
downloading oci8-2.1.8.tgz ...
Starting to download oci8-2.1.8.tgz (194,154 bytes)
.........................................done: 194,154 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect]
我过去的目录: /usr/lib/oracle/12.2/client64/
building in /var/tmp/pear-build-rootqQ3gpn/oci8-2.1.8
running: /var/tmp/oci8/configure --with-php-config=/usr/bin/php-config --with-oci8=/usr/lib/oracle/12.2/client64/
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for Oracle Database OCI8 support... yes, shared
checking PHP version... 7.0.26, ok
checking OCI8 DTrace support... no
checking size of long int... 8
checking checking if we're on a 64-bit platform... yes
checking Oracle ORACLE_HOME install directory... /usr/lib/oracle/12.2/client64/
checking ORACLE_HOME library validity... lib
checking Oracle library version compatibility... 12.1
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-rootqQ3gpn/oci8-2.1.8/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootqQ3gpn/oci8-2.1.8/include -I/var/tmp/pear-build-rootqQ3gpn/oci8-2.1.8/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c -o oci8.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootqQ3gpn/oci8-2.1.8/include -I/var/tmp/pear-build-rootqQ3gpn/oci8-2.1.8/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c -fPIC -DPIC -o .libs/oci8.o
In file included from /var/tmp/oci8/oci8.c:49:
/var/tmp/oci8/php_oci8_int.h:46:29: error: oci8_dtrace_gen.h: No such file or directory
/var/tmp/oci8/oci8.c:3375: error: expected expression before ‘)’ token
/var/tmp/oci8/oci8.c:3375: error: invalid operands to binary * (have ‘const struct zend_ini_entry_def *’ and ‘const struct zend_ini_entry_def *’)
/var/tmp/oci8/oci8.c:3375: error: ‘zend_oci_globals’ has no member named ‘in_call’
/var/tmp/oci8/oci8.c:3378: error: ‘php_oci_spool’ has no member named ‘spool_hash_key’
/var/tmp/oci8/oci8.c:3379: error: ‘php_oci_spool’ has no member named ‘spool_hash_key’
/var/tmp/oci8/oci8.c:3379: warning: passing argument 1 of ‘free’ discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected ‘void *’ but argument is of type ‘const struct zend_ini_entry_def *’
/var/tmp/oci8/oci8.c: At top level:
/var/tmp/oci8/oci8.c:3392: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_oci_ping_init’
/var/tmp/oci8/oci8.c:3434: error: expected declaration specifiers or ‘...’ before ‘sb4’
/var/tmp/oci8/oci8.c:3434: error: expected declaration specifiers or ‘...’ before ‘ub4’
/var/tmp/oci8/oci8.c: In function ‘php_oci_dtrace_check_connection’:
/var/tmp/oci8/oci8.c:3438: error: ‘php_oci_connection’ has no member named ‘client_id’
/var/tmp/oci8/oci8.c:3438: error: ‘php_oci_connection’ has no member named ‘is_open’
/var/tmp/oci8/oci8.c:3438: error: ‘errcode’ undeclared (first use in this function)
/var/tmp/oci8/oci8.c:3438: error: ‘serverStatus’ undeclared (first use in this function)
make: *** [oci8.lo] Error 1
ERROR: `make' failed
这是oracle客户端和php版本的冲突吗?
yum install systemtap-sdt-devel
export PHP_DTRACE=yes
这工作很好。
我正在开发一个应用程序,如果我从android studio运行到我的设备上,它绝对运行良好。如果我将我的apk放入google drive并与其他人共享,它会显示错误< code >(“Android apk安装失败。安装包错误,无法安装。)当他们尝试安装应用程序时。不是署名的apk。它仍处于原型阶段(调试模式)。 请让我知道我哪里做错了。
问题内容: 我正在尝试使用goinstall github.com/hoisie/web.go 安装web.go,但我不断收到有关该路径的错误。 goinstall确实可以正常工作,因为当我只输入goinstall时,我会得到它的选项列表。关于我在做什么错的任何想法吗? 都会 问题答案: 您需要安装git(http://git-scm.com)才能从git存储库中获取软件包。 干杯, 法比安
我使用Linux Mint,我想安装sass。我已经通过“sudo apt install ruby”2.3版安装了ruby,然后,当我想通过“sudo gem install sass-no user install”安装sass时,我出现了以下错误:
我正在运行npm来安装mnodesql,这是一个用于sql服务器驱动程序的npm库。我安装这个Windows Server 2012盒。 我已经安装了Visual C 2010、node gyp和Python 2.7.x.x作为依赖项,所有这些安装都是成功的。 当我运行npm install msnodesql时,我得到一个红色的大错误: (x86)\MSBuild\Microsoft.Cpp\v
问题内容: 当我给出命令时,它引发以下错误。在Ubuntu机器上 我也试过 没事。 问题答案: Node非常容易手动安装。我也喜欢这样做,因为切换版本真的很容易。 这也很棒,因为您无需向添加一些外部软件包存储库,并且在节点发布新版本时不必等待这些存储库更新。您可以在发布更新后立即获得更新。 最好的部分是,您可以对其他任何版本的节点重复该模式,随时更改符号链接以切换您正在运行的版本,然后您就可以开始
我正在执行< code > pip install setup tools-upgrade ,但出现以下错误 我错过了什么?我也尝试了sudo pip安装,但没有帮助。
问题内容: 我正在通过sudo npm install ionic -g安装ionic 并得到以下错误 离子论坛中也列出了该问题:-https: //forum.ionicframework.com/t/installing-ionic-not- successful-solved/36050/7 我曾尝试多次更改节点,npm,cordova版本,但是每次遇到此错误时,我都认为这与版本无关。在某些
问题内容: 我一直在寻找解决方案已有两天,无法在Windows 8.1系统上设置Phonegap。 每当我尝试通过npm安装Phonegap时,都会收到我认为与Cordova(-lib)有关的错误。 要安装Phonegap,我必须在系统上安装Node.js(v0.10.28)。此后,我打开了Windows Powershell,并按照Phonegap网站上的指示发出了以下命令: 输出:( 这是错误