Created
January 10, 2015 08:39
-
-
Save boscoworks/883dac913ca4d3eb89d2 to your computer and use it in GitHub Desktop.
PCREをソースコードビルドする ref: http://qiita.com/boscoworks/items/b57cee97700092a8627e
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://sourceforge.net/projects/pcre/files/pcre/8.36/pcre-8.36.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/pcre-8.36.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/pcre-8.36/ | |
./configure --prefix=/usr/local/lib/pcre-8.36 |
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/pcre-8.36 /usr/local/pcre |
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/pcre-8.36/lib" > /usr/local/etc/ld.so.conf.d/pcre-8.36.conf | |
sudo ln -s /usr/local/etc/ld.so.conf.d/pcre-8.36.conf /etc/ld.so.conf.d/pcre-8.36.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/pcre-8.36.tar.gz | |
sudo rm -r /usr/local/src/pcre-8.36/ | |
sudo rm -r usr/local/lib/pcre-8.36/ | |
sudo rm -r /usr/local/pcre | |
sudo rm -r /usr/local/etc/ld.so.conf.d/pcre-8.36.conf | |
sudo rm -r /etc/ld.so.conf.d/pcre-8.36.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