J'essaie d'installer le client instantané Oracle pour pouvoir utiliser l'extension php5_oci8, mais lorsque j'essaie de convertir les fichiers fournis par rpm en .deb avec la commande alien
, j'obtiens les erreurs suivantes:
vagrant@sherwood:/vagrant/src/packages/Oracle-instantclient$ Sudo alien -i Oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
Package build failed. Here's the log:
dh_testdir
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_installdocs
dh_installchangelogs
find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
xargs -0 -r -i cp -a {} debian/Oracle-instantclient12.1-basic
dh_compress
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dpkg-shlibdeps: error: couldn't find library libclntsh.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libociei.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntshcore.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libociei.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntsh.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocijdbc12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntshcore.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocijdbc12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libmql1.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocijdbc12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libipc1.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocijdbc12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libnnz12.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocijdbc12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntsh.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/genezi (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntshcore.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/genezi (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocci.so.12.1 contains an unresolvable reference to symbol slnxsub: it's probably a plugin
dpkg-shlibdeps: warning: 262 other similar warnings have been skipped (use -v to see them all)
dpkg-shlibdeps: warning: couldn't find library libipc1.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libmql1.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libmql1.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntsh.so.12.1 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libipc1.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntsh.so.12.1 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libnnz12.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntsh.so.12.1 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libons.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntsh.so.12.1 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntshcore.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntsh.so.12.1 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntshcore.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libnnz12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntsh.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/adrci (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntshcore.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/adrci (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libmql1.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/adrci (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libipc1.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/adrci (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: couldn't find library libnnz12.so needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/adrci (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntsh.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/liboramysql12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libclntshcore.so.12.1 needed by debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/liboramysql12.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libociei.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocijdbc12.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/genezi debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntshcore.so.12.1 debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntsh.so.12.1 debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/adrci debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/liboramysql12.so were not linked against libnsl.so.1 (they use none of the library's symbols)
dpkg-shlibdeps: error: cannot continue due to the errors listed above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/Oracle-instantclient12.1-basic.substvars debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/adrci debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/bin/genezi debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntsh.so.12.1 debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libclntshcore.so.12.1 debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libipc1.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libmql1.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libnnz12.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocci.so.12.1 debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libociei.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libocijdbc12.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/libons.so debian/Oracle-instantclient12.1-basic/usr/lib/Oracle/12.1/client64/lib/liboramysql12.so returned exit code 2
make: [binary-Arch] Error 2 (ignored)
dh_gencontrol
dpkg-gencontrol: warning: Depends field of package Oracle-instantclient12.1-basic: unknown substitution variable ${shlibs:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
dh_builddeb: dpkg-deb --build debian/Oracle-instantclient12.1-basic .. returned exit code 2
make: *** [binary-Arch] Error 1
J'ai trouvé cette erreur nulle part, quelqu'un peut-il m'indiquer la bonne direction?
Il s’agit probablement d’un problème Vagrant/Windows que vous rencontrez lorsque vous essayez d’installer les fichiers RPM à partir d’un dossier de destruction.
Copiez les RPM dans un répertoire/Oracle (ou autre) qui ne se trouve pas dans vos répertoires partagés. L'erreur devrait disparaître.
le problème est que vous n’avez pas installé les packages nécessaires à Oracle sur votre système. Je recommanderais d'utiliser le programme d'installation universel d'Oracle, qui vous indique les paquets nécessaires pour l'installation.
généralement, ce problème peut être facilement résolu en exécutant le package "Oracle-rdbms-server-11gR2-preinstall" proposé par le référentiel "Oracle Public Yum". Malheureusement, nous n’avons pas un tel référentiel pour Ubuntu et les paquets d’autres systèmes ne fonctionnent pas bien.
si, pour une raison quelconque, vous ne pouvez pas utiliser OUI, vous pouvez le faire en installant avec apt-get chaque paquet de votre journal qui n'a pas été trouvé.
J'ai eu le même problème, en essayant de l'installer en utilisant l'emplacement vmhost/mnt. Copié dans le dossier à l'intérieur de la VM et a pu l'installer avec succès