FiligranHQ / zotprime

Full packaged on-premise Zotero platform
https://www.zotero.org
Other
325 stars 60 forks source link

pkg-config not found #10

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi I followed the instructions to create and start the docker image/container. Docker is not able to create the image. See the error below. Any ideas why?

Step 17/39 : RUN DEBIAN_FRONTEND=noninteractive pecl download memcached-3.0.4 && tar xvzf memcached-3.0.4.tgz && cd memcached-3.0.4 && phpize && ./configure --enable-memcached-igbinary && make && make install
 ---> Running in 7be166c9f7ad
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading memcached-3.0.4.tgz ...
Starting to download memcached-3.0.4.tgz (78,776 bytes)
..................done: 78,776 bytes
File //memcached-3.0.4.tgz downloaded
package.xml
memcached-3.0.4/tests/skipif.inc

... ...

memcached-3.0.4/fastlz/fastlz.h
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
checking for grep that handles long lines and -e... /bin/grep

... ...

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... no

... ...

checking for ZLIB... yes, shared
checking for pkg-config... no
pkg-config not found
**configure: error: Please reinstall the pkg-config distribution**
**ERROR**: Service 'app-zotero' failed to build: The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive pecl download memcached-3.0.4 && tar xvzf memcached-3.0.4.tgz && cd memcached-3.0.4 && phpize && ./configure --enable-memcached-igbinary && make && make install' returned a non-zero code: 1
ghost commented 5 years ago

ok I solved it by adding:

RUN DEBIAN_FRONTEND=noninteractive apt-get -y install pkg-config

like so:

# Setup Memcached
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install pkg-config
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev libxml2-dev zlib1g-dev libicu-dev g++