makeして
xmangekyou
という実行ファイルを得たのですが
これをノーチラスからダブルクリックすると実行されるのですが
端末から
xmangekyou
を入力してリターンしてもコマンドが見付からないというエラーが出ます
どうしてでしょうか?
[root@localhost xmangekyou-2.0.1]# ls
COPYRIGHT.euc anime.o configure.h init.o string.h xmangekyou.1.gz
HISTORY.euc argument.c graph.c main.c string.o xmangekyou.c
Makefile argument.h graph.h main.o time.c xmangekyou.h
README.euc argument.o graph.o quit.c time.h xmangekyou.man
animation.dat cal.c icon.xpm quit.h time.o xmangekyou.o
anime.c cal.h init.c quit.o xmangekyou
anime.h cal.o init.h string.c xmangekyou.1
[root@localhost xmangekyou-2.0.1]# xmangekyou
bash: xmangekyou: command not found
[root@localhost xmangekyou-2.0.1]#
No.1ベストアンサー
- 回答日時:
一般ユーザならそういうのもありかな。
とは思うんですが、rootのPATHにカレントディレクトリが含まれる様な設定は聞いた事がないです。
他のプログラムはカレントディレクトリで実行できますか?
因みに私の立ててるサーバのrootは、
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin"
の様になってます。
./hogeか、
/path/to/binary/hogeで、
やってはどうですか?
参考URL:http://www.ut-info.com/linux-security/path.html
ありがとうございます
カレントディレクトリが必ずしもパスが通っていないのですね
フルパスで実行できました
[xmangekyou-2.0.1]# /root/xmangekyou-2.0.1/xmangekyou
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
bashでシングルクォート内の変...
-
スクリプトのエラー「unexpecte...
-
シェルスクリプト実行で”そのよ...
-
ldapaddコマンドでエラー
-
apachectl start command not f...
-
Linuxで自作バッチファイルの置...
-
自動パスワード入力でscpするス...
-
crontabでsql/plusの起動
-
cronの@rebootでのdateコマンド...
-
bad interpreterで、シェルが使...
-
crontabでjavaだけが上手く動い...
-
Linux 月を英語表示したい
-
Linuxでシェルスクリプトがフル...
-
複数存在するgrepについて
-
シェルスクリプトで標準エラー...
-
cronによるgriveの実行について
-
Macのターミナルでコマンドが効...
-
mekeコマンド
-
JAVAの環境変数が初期化されて...
-
Dirコマンドでフォルダ内ファイ...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
スクリプトのエラー「unexpecte...
-
bashでシングルクォート内の変...
-
シェルスクリプト実行で”そのよ...
-
Linux 月を英語表示したい
-
crontabでsql/plusの起動
-
ロケールをutf8からsjisにする...
-
Linuxでシェルスクリプトがフル...
-
自動パスワード入力でscpするス...
-
cronの@rebootでのdateコマンド...
-
sudoでシェルスクリプトを実行...
-
Cronジョブの終了時刻を簡単に...
-
Bシェルで文字列が日付として正...
-
bad interpreterで、シェルが使...
-
UNIXのbashエラーでnot a valid
-
Linuxで自作バッチファイルの置...
-
hp-uxで時間(時計)を合...
-
apachectl start command not f...
-
cronが動かない
-
cron(javaプログラム)からroot...
-
Cシェルのかっこいいプロンプト...
おすすめ情報