pear install thru dab

apmuthu

Well-Known Member
Feb 26, 2009
807
8
58
Chennai - India & Singapore
github.com
On trying to install some php pear packages using DAB, the following error occurs:
Code:
install: php-pear
install: libssh2-1
install: php5-curl
dab exec pear install --alldeps MAIL Net_SMTP
No releases available for package "pear.php.net/MAIL"
No releases available for package "pear.php.net/Net_SMTP"
install failed
ve_exec failed - status 1
ve_exec failed - status 1
make: *** [all] Error 1

The relevant code fragment in the Makefile that DAB used is:
Code:
    dab install php-pear
    dab exec pear install --alldeps MAIL Net_SMTP

The output of dpkg --get-selections | grep pear shows that pear is installed:
Code:
php-pear                                        install

How do we then install pear packages thru DAB?
 
Last edited:
Re: pear install thru dab - workaround

Looks like pear and pecl cannot be directly installed using DAB. The following workaround seems to work.

Download the following attachment and place it in the DAB build folder:

View attachment pearmailpkgs.zip

Use the following in the Makefile:
Code:
    dab install php5-curl php5-xsl php5-xmlrpc php-pear
#    dab pear download MAIL Net_SMTP Auth_SASL Net_Socket
    unzip -o pearmailpkgs.zip -d ${BASEDIR}/usr/src/
    dab exec pear install /usr/src/Mail-1.2.0.tgz /usr/src/Net_SMTP-1.6.1.tgz /usr/src/Auth_SASL-1.0.6.tgz /usr/src/Net_Socket-1.0.10.tgz
    rm -f ${BASEDIR}/usr/src/Mail-1.2.0.tgz
    rm -f ${BASEDIR}/usr/src/Net_SMTP-1.6.1.tgz
    rm -f ${BASEDIR}/usr/src/Auth_SASL-1.0.6.tgz
    rm -f ${BASEDIR}/usr/src/Net_Socket-1.0.10.tgz
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!