Last active
August 29, 2015 14:12
-
-
Save boscoworks/d4071bd14a8aa0bfc373 to your computer and use it in GitHub Desktop.
zlibをソースコードビルドする ref: http://qiita.com/boscoworks/items/a27a74e5da8adc3c1be8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://zlib.net/zlib-1.2.8.tar.gz -P /usr/local/share/downloaded/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -zxvf /usr/local/share/downloaded/zlib-1.2.8.tar.gz -C /usr/local/src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/src/zlib-1.2.8/ | |
./configure --prefix=/usr/local/lib/zlib-1.2.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /usr/local/lib/zlib-1.2.8 /usr/local/zlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "/usr/local/lib/zlib-1.2.8/lib" > /usr/local/etc/ld.so.conf.d/zlib-1.2.8.conf | |
sudo ln -s /usr/local/etc/ld.so.conf.d/zlib-1.2.8.conf /etc/ld.so.conf.d/zlib-1.2.8.conf | |
sudo ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -r /usr/local/share/downloaded/zlib-1.2.8.tar.gz | |
sudo rm -r /usr/local/src/zlib-1.2.8/ | |
sudo rm -r usr/local/lib/zlib-1.2.8/ | |
sudo rm -r /usr/local/zlib | |
sudo rm -r /usr/local/etc/ld.so.conf.d/zlib-1.2.8.conf | |
sudo rm -r /etc/ld.so.conf.d/zlib-1.2.8.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment