Cannot install composer due to oci8.
Could you provide the full error logs?
+ umask 000
+ git clone --branch="production" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/abansweb2/common-api.git $BUILD_DIR ; git reset --hard 487421a49a256fa12ef094cfc1cc00f8e06fea3a ; git remote set-url origin git@bitbucket.org:abansweb2/common-api.gitCloning into '/opt/atlassian/pipelines/agent/build'...HEAD is now at 487421a bitbucket-pipelines.yml edited online with Bitbucket
+ chmod 777 $BUILD_DIR
Cache "composer": DownloadingCache "composer": Not found+ apt-get update && apt-get install -y unzipGet:1 http://security.debian.org jessie/updates InRelease [63.1 kB]Get:2 http://security.debian.org jessie/updates/main amd64 Packages [632 kB]Ign http://deb.debian.org jessie InReleaseGet:3 http://deb.debian.org jessie-updates InRelease [145 kB]Get:4 http://deb.debian.org jessie Release.gpg [2434 B]Get:5 http://deb.debian.org jessie Release [148 kB]Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [23.1 kB]Get:7 http://deb.debian.org jessie/main amd64 Packages [9064 kB]Fetched 10.1 MB in 4s (2177 kB/s)Reading package lists...Reading package lists...Building dependency tree...Reading state information...Suggested packages:zipThe following NEW packages will be installed:unzip0 upgraded, 1 newly installed, 0 to remove and 67 not upgraded.Need to get 162 kB of archives.After this operation, 395 kB of additional disk space will be used.Get:1 http://deb.debian.org/debian/ jessie/main unzip amd64 6.0-16+deb8u3 [162 kB]debconf: delaying package configuration, since apt-utils is not installedFetched 162 kB in 0s (195 kB/s)Selecting previously unselected package unzip.(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 12250 files and directories currently installed.)Preparing to unpack .../unzip_6.0-16+deb8u3_amd64.deb ...Unpacking unzip (6.0-16+deb8u3) ...Setting up unzip (6.0-16+deb8u3) ...
+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composerAll settings correct for using ComposerDownloading...
Composer (version 1.6.3) successfully installed to: /usr/local/bin/composerUse it: php /usr/local/bin/composer
+ pecl install oci8downloading oci8-2.1.8.tgz ...Starting to download oci8-2.1.8.tgz (194,154 bytes).........done: 194,154 bytes11 source files, buildingrunning: phpizeConfiguring for:PHP Api Version: 20160303Zend Module Api No: 20160303Zend Extension Api No: 320160303Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : building in /tmp/pear/temp/pear-build-defaultuservKz3Bk/oci8-2.1.8running: /tmp/pear/temp/oci8/configure --with-php-config=/usr/local/bin/php-config --with-oci8checking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking for cc... ccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether cc accepts -g... yeschecking for cc option to accept ISO C89... none neededchecking how to run the C preprocessor... cc -Echecking for icc... nochecking for suncc... nochecking whether cc understands -c and -o together... yeschecking for system library directory... libchecking if compiler supports -R... nochecking if compiler supports -Wl,-rpath,... yeschecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for PHP prefix... /usr/localchecking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/libchecking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20160303checking for PHP installed headers prefix... /usr/local/include/phpchecking if debug is enabled... nochecking if zts is enabled... nochecking for re2c... re2cchecking for re2c version... 0.13.5 (ok)checking for gawk... nochecking for nawk... nawkchecking if nawk is broken... nochecking for Oracle Database OCI8 support... yes, sharedchecking PHP version... 7.1.1, okchecking OCI8 DTrace support... nochecking size of long int... 8checking checking if we're on a 64-bit platform... yesconfigure: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client insteadchecking Oracle Instant Client directory... configure: error: Oracle Instant Client directory /usr/lib/oracle/.../client64/lib libraries not found. Try --with-oci8=instantclient,DIRERROR: `/tmp/pear/temp/oci8/configure --with-php-config=/usr/local/bin/php-config --with-oci8' failed
+ docker-php-ext-install mcrypt && docker-php-ext-install pdo_mysql+ cd mcrypt+ phpizeConfiguring for:PHP Api Version: 20160303Zend Module Api No: 20160303Zend Extension Api No: 320160303+ ./configurechecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking for cc... ccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether cc accepts -g... yeschecking for cc option to accept ISO C89... none neededchecking how to run the C preprocessor... cc -Echecking for icc... nochecking for suncc... nochecking whether cc understands -c and -o together... yeschecking for system library directory... libchecking if compiler supports -R... nochecking if compiler supports -Wl,-rpath,... yeschecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for PHP prefix... /usr/localchecking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/libchecking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20160303checking for PHP installed headers prefix... /usr/local/include/phpchecking if debug is enabled... nochecking if zts is enabled... nochecking for re2c... re2cchecking for re2c version... 0.13.5 (ok)checking for gawk... nochecking for nawk... nawkchecking if nawk is broken... nochecking for mcrypt support... yes, sharedconfigure: error: mcrypt.h not found. Please reinstall libmcrypt.
+ docker-php-ext-enable oci8error: /usr/local/lib/php/extensions/no-debug-non-zts-20160303/oci8 does not exist
usage: /usr/local/bin/docker-php-ext-enable [options] module-name [module-name ...]ie: /usr/local/bin/docker-php-ext-enable gd mysqli/usr/local/bin/docker-php-ext-enable pdo pdo_mysql/usr/local/bin/docker-php-ext-enable --ini-name 0-apc.ini apcu apc
Possible values for module-name:opcache.so
Skipping cache upload for failed stepSearching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4Finished scanning for test reports. Found 0 test report files.Merged test suites, total number tests is 0, with 0 failures and 0 errors.
In your logs I see this, maybe addressing this fixes the other errors?
configure: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client insteadchecking Oracle Instant Client directory... configure: error: Oracle Instant Client directory /usr/lib/oracle/.../client64/lib libraries not found. Try --with-oci8=instantclient,DIRERROR: `/tmp/pear/temp/oci8/configure --with-php-config=/usr/local/bin/php-config --with-oci8' failed
It looks like you're new here. Sign in or register to get started.