Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pecl install error #9

Open
prince74igor opened this issue Jan 26, 2023 · 1 comment
Open

pecl install error #9

prince74igor opened this issue Jan 26, 2023 · 1 comment

Comments

@prince74igor
Copy link

prince74igor commented Jan 26, 2023

Hi, @jbarone.

I appreciate your work!
When I tried to build the docker container I face an error about pecl:

kali@kali ~/xxelab (master)> sudo docker build -t xxelab . --build-arg http_proxy=$http_proxy
Sending build context to Docker daemon    235kB
Step 1/9 : FROM ubuntu:trusty
 ---> 13b66b487594
...
+ pecl install expect
No releases available for package "pecl.php.net/expect"
install failed
The command '/bin/sh -c set -eux; 	apt-get update; 	apt-get install -yq 		apache2 	        libapache2-mod-php5 		php5-gd 	        php5-curl 		php-pear 	        php5-dev 		libcurl4-openssl-dev 		expect-dev 		php5-sqlite 		php-apc ; 	pecl install expect; 	echo "extension=expect.so" >> /etc/php5/apache2/php.ini; 	rm -rf /var/lib/apt/lists/*; 	echo "ServerName localhost" >> /etc/apache2/apache2.conf;         sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini; 	rm -fr /var/www/html && ln -s /app /var/www/html;  	service apache2 restart' returned a non-zero code: 1

I have deleted a concatenation in RUN section command:

FROM ubuntu:trusty

ENV DEBIAN_FRONTEND noninteractive

COPY --chown=www-data:www-data penlab /app/
RUN set -eux; \
        apt-get update; \
        apt-get install -yq \
                apache2 \
                libapache2-mod-php5 \
                php5-gd \
                php5-curl \
                php-pear \
                php5-dev \
                libcurl4-openssl-dev \
                expect-dev \
                php5-sqlite \
                php-apc ;
RUN     pecl install expect; \
        echo "extension=expect.so" >> /etc/php5/apache2/php.ini; \
        rm -rf /var/lib/apt/lists/*; \
        echo "ServerName localhost" >> /etc/apache2/apache2.conf; \
        sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini; \
        rm -fr /var/www/html && ln -s /app /var/www/html; \
        service apache2 restart

COPY httpd-foreground /usr/bin/
RUN chmod 755 /usr/bin/httpd-foreground

EXPOSE 80
CMD ["/usr/bin/httpd-foreground"]

and it has been fixed:

Step 5/9 : RUN	pecl install expect; 	echo "extension=expect.so" >> /etc/php5/apache2/php.ini; 	rm -rf /var/lib/apt/lists/*; 	echo "ServerName localhost" >> /etc/apache2/apache2.conf;         sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini; 	rm -fr /var/www/html && ln -s /app /var/www/html; 	service apache2 restart
 ---> Running in 7e9ddaddd852
No releases available for package "pecl.php.net/expect"
@prince74igor prince74igor changed the title perl pecl install error Jan 26, 2023
@jbarone
Copy link
Owner

jbarone commented Jan 26, 2023

Nice! Thanks. I've not looked at this project in a while. Should probably update a few things. But I appreciate the fix idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants