суббота, 24 августа 2013 г.

How to build 32-bit curl and openssl on 64-bit Mac OS X

First let's donwload and build openssl:
OPENSSL_VERSION="1.0.1e"
mkdir -p ~/packages/tmp_src
cd ~/packages/tmp_src
curl http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz > openssl-$OPENSSL_VERSION.tar.gz
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz
mv openssl-$OPENSSL_VERSION openssl_i386

cd openssl_i386
./Configure darwin-i386-cc
make -j 8
make install
cd ../
To make sure that we built 32-bit versions:
lipo -info /path/to/libssl.a
lipo -info /path/to/libcrypto.a
It should tell us that architecture is i386 Then do the same for curl
CURL_VERSION="7.29.0"
curl http://curl.haxx.se/download/curl-$CURL_VERSION.tar.gz > curl-$CURL_VERSION.tar.gz
tar xzvf curl-$CURL_VERSION.tar.gz
mv curl-$CURL_VERSION curl_i386
cd curl_i386
./configure --with-ssl=/usr/local/ssl --prefix=/Users/USERNAME/packages/tmp_src/curl_i386 --disable-shared --host=i386 --disable-ldap --without-zlib
make -j 8
#make install

Комментариев нет :