LoginSignup
1
0

More than 5 years have passed since last update.

realpath をソースコードビルドする

Posted at

概要

これはなに?

目標

- realpath が実行できるようになる

実行環境

依存パッケージ

  • なし

導入手順

ソースコードをダウンロードする

wget http://github.com/dtjm/realpath/raw/master/realpath.c -P /usr/local/share/downloaded/

コンパイルする

gcc -o /usr/local/src/realpath /usr/local/share/downloaded/realpath.c

パーミッションを変更する

chmod 0755 /usr/local/src/realpath

コマンドのシンボリックリンクを作成する

sudo ln -s /usr/local/src/realpath /usr/local/bin/realpath

削除手順

導入時に生成したファイルを削除する

sudo rm -r /usr/local/share/downloaded/realpath.c
sudo rm -r /usr/local/src/realpath
sudo rm -r /usr/local/bin/realpath
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0