Created
January 16, 2015 03:05
-
-
Save boscoworks/82a3a4fda4505c64cf3f to your computer and use it in GitHub Desktop.
realpath をソースコードビルドする ref: http://qiita.com/boscoworks/items/024d41d17277529b054b
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://github.com/dtjm/realpath/raw/master/realpath.c -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
gcc -o /usr/local/src/realpath /usr/local/share/downloaded/realpath.c |
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
chmod 0755 /usr/local/src/realpath |
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/src/realpath /usr/local/bin/realpath |
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/realpath.c | |
sudo rm -r /usr/local/src/realpath | |
sudo rm -r /usr/local/bin/realpath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment