Current File : /home/inlingua/public_html/decay_sym/root/var/softaculous/apps/curl7/build/make.sh |
#!/bin/bash
source /var/softaculous/apps/build/common.sh
#Version
curl=curl-7.87.0 # need higher openssl-1.1.1 versions
#curl=curl-7.67.0 # need lower openssl-1.0.2 versions
is_file $AMPPS_PATH"/curl-7/lib/libcurl.so"
if [ $? == 0 ]
then
# Libraries
#openssl
#zlib
#ldap
banner "Installing curl"
cd $SRC_PATH
remove_dir $curl
is_file $curl.tar.gz
if [ $? == 0 ]
then
banner $curl".tar.gz Downloading"
wget --no-check-certificate -O $SRC_PATH/$curl.tar.gz https://curl.se/download/$curl.tar.gz>> $LOG 2>&1
fi
tar -zxf $curl.tar.gz
cd $curl
export PKG_CONFIG_PATH=/usr/local/apps/openssl-30/lib/pkgconfig:/usr/local/apps/lib/pkgconfig
LDFLAGS="-L$AMPPS_PATH/openssl-30/lib -L$AMPPS_PATH/lib -lssl" CPPFLAGS="-I$AMPPS_PATH/openssl-30/include -I$AMPPS_PATH/include" ./configure --prefix=$AMPPS_PATH/curl-7 --enable-shared --enable-ldap --with-ssl=$AMPPS_PATH/openssl-30 --with-zlib=$AMPPS_PATH --without-nghttp2 LDFLAGS=-Wl,-rpath=$AMPPS_PATH/openssl-30/lib:$AMPPS_PATH/lib
#cp -f $APPS_PATH/curl/build/src/Makefile_curl $SRC_PATH/$curl/Makefile
make && make install >> $LOG 2>&1
#patchelf --set-rpath $AMPPS_PATH/lib/ $AMPPS_PATH/bin/curl
fi
is_file $AMPPS_PATH"/curl-7/lib/libcurl.so"
if [ $? == 0 ]
then
banner 'libcurl could not be installed due to some reason'
exit 1
fi