SUGI製作所

音楽機材やスマホアプリ開発のネタが中心です。

CentOS5系にcurlをインストール

centos5系のcurlは7.15なので--data-urlencodeが使えない

curlの最新版をインストール
参考URL:http://d.hatena.ne.jp/IT7C/20100815/1281853069

wget "http://curl.haxx.se/download/curl-7.26.0.tar.gz"
tar -xvzf curl-7.26.0.tar.gz
./configure --prefix=/usr/local --with-ssl=/usr/local/ssl --with-libssh2=/usr/local

libSSH2がないのでインストール
wget "http://www.libssh2.org/download/libssh2-1.4.2.tar.gz"
tar -xvzf libssh2-1.4.2.tar.gz
./configure --prefix=/usr/local --with-openssl=/usr/local
sudo make
sudo make install

libSSH2が入ったのでcurlのインストールを再開
./configure --prefix=/usr/local --with-ssl=/usr/local/ssl --with-libssh2=/usr/local
sudo make
sudo make install