アプリ版:「スタンプのみでお礼する」機能のリリースについて

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]#

A 回答 (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
    • good
    • 0
この回答へのお礼

ありがとうございます

カレントディレクトリが必ずしもパスが通っていないのですね
フルパスで実行できました

[xmangekyou-2.0.1]# /root/xmangekyou-2.0.1/xmangekyou

お礼日時:2004/03/08 17:48

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!