• ベストアンサー

わからないエラーが出て困っております。

Mac OS X 10.4.11を使っております。 /bin/sh: line 1: /usr/bin/dscacheutil: No such file or directory というエラーが出る場合はどうしたらいいのでしょうか...本当に全然わからない初心者で困っております。

  • Mac
  • 回答数3
  • ありがとう数4

質問者が選んだベストアンサー

  • ベストアンサー
  • capy2009
  • ベストアンサー率72% (337/465)
回答No.3

要するに「何か」を起動した時にそのエラーが出ると言うことですね。 その「何か」について詳しく書いてもらわないとどうしようもありません。 まあそれに該当するのは某後ろ暗いソフトくらいですから書き込めないんでしょうね。 当然規約違反なので解決策も教えられません。

bounds
質問者

お礼

ご返信ありがとうございます。 そうなんです...書き込めない内容のモノでした...。でも、やはりあきらめる事にしました。色々とお答え頂きまして本当にありがとうございます。 また何かございました際はよろしくお願い致します。

その他の回答 (2)

  • capy2009
  • ベストアンサー率72% (337/465)
回答No.2

> PHPの勉強の為最近XAMPPを入れたのですが 他にスクリプトに関連したものを入れてなければ、それが原因の可能性大です。シェルスクリプトの集まりですから、そのエラーが出ても不思議ではありません。

bounds
質問者

お礼

ご返信ありがとうございます。 今XAMPPをアンインストールしたのですが、やはりダメでした... 他に何か原因は考えられますでしょうか? 因に上記エラーの他に違うやり方をすると /bin/sh: line 18: /usr/bin/dscacheutil: No such file or directory と数字の変わったエラーになるのですが、原因は同じ感じでしょうか? あぁ...

  • capy2009
  • ベストアンサー率72% (337/465)
回答No.1

それは DNS のキャッシュをクリアするコマンドが見つからないというエラーですが、Leopard(OS X 10.5)から導入されたものなので、OS X 10.4 では存在しなくて当たり前です。 初心者ということなのでターミナルは触ってないですよね? だとすれば Onyx といった類のシステム関連のユーティリティーを入れてませんか? 入れていたらそれを外してください。初心者が使うとかえってトラブルの元になります。

bounds
質問者

お礼

早速のご回答本当にありがうございます。 質問の仕方すらわらかにような初心者で...。 ターミナルは触っておらず、システム関連のユーティリティーも全然わからないので入れていないはずです...PHPの勉強の為最近XAMPPを入れたのですが 、これは関係ないのですかね? 何度もご質問申し訳ございませんが、どうかお知恵をお貸し下さい。

関連するQ&A

  • #!/bin/bash のラインでエラー発生

    お世話になります。 Linux初心者です。 下記のような***.shを作成し、./***.sh で実行すると、/bin/bash^M bad interperter: No such file or directory というエラーが発生してしまいます。 原因として考えられる事をご教授頂けないでしょうか? --------------------------------------- #!/bin/bash PATH=/usr/local/bin:/bin:/usr/bin for conf in /etc/webalizer*.conf do ~ ---------------------------------------

  • CentOSでアップデート中に再起動してエラー発生

    現在CentOS5を使用しているのですがアップデート途中に再起動をしてしまった為、起動中にエラーが発生して止まってしまいます。 復旧方法があれば教えて頂きたいのですが・・・エラーの内容は bash: dircolors: command not found bash: /usr/bin/id: No such file or directory bash: [: =: unary operator expected bash: /usr/bin/id: No such file or directory bash: [: =: unary operator expected bash: /usr/bin/pkg-config: No such file or directory と表示されます、宜しく御願いします。

  • mac起動しない!

    /etc/master.passwd:no such file or directory /etc/master.passwd:no such file or directory sh-2.05a# 起動時に上記のコマンドの様なものが出て、そこらから、立ち上がりません。 再インストールするしかないでしょうか?? また、その際、データは全て消えてしまうのでしょうか?? OSはXでクラッシックも入っています。 当方、MAC初心者です。

    • 締切済み
    • Mac
  • さくらインターネットでSVNエラー

    さくらインターネットへのSubversionの設置の仕方はググるといくらでも出てくるので、その通りにインストールしました。 外部からの接続確認をしようとローカルマシン(MacBook Pro OS X 10.7.3)のターミナルから svn info svn+ssh://section-9@section-9.sakura.ne.jp/home/section-9/svn/reps を実行したところ、 ( failure ( ( 2 86:Error in child process: posix_spawn of 'usr/bin/ssh' failed: No such file or directory 84:/SourceCache/subversion/subversion-44.1/subversion/subversion/libsvn_ra_svn/client.c 457 ) ) ) svn: Can't create tunnel: No such file or directory と言うエラーが返却されて接続できません。 ぱっと見たところ、usr/bin/sshが見つからないと言っているように見えます。実際のパスは/usr/bin/sshです。 どうすれば接続できるでしょうか?

  • シェル エラーについて

    Linux programming 3rd Editionと言う本にサンプルプログラムがあるんですけど、試しに使ってみたら /bin/sh^M: bad interpreter: No such file or directory と出てきました  通訳すると”下手な通訳:このファイルまたはディレクトリは見つかりません” /bin/sh^Mの^Mってなんですか?

  • CentOSにJavaの実行環境を構築する方法

    初めまして、CentOS5.8サーバでJavaの実行環境を作ろうとしていますが、上手くいかず困っております。 参考にしたのは下記のサイトです。 http://d.hatena.ne.jp/sardine/20110602 # wget -O jdk-7u4-linux-i586-rpm.bin http://download.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-i586.rpm と実行したところ、jdk-7u4-linux-i586-rpm.bin がダウンロードされています。 大きさは5kbyteくらいでした。 # chmod a+x jdk-7u4-linux-i586-rpm.bin を実行して #./jdk-7u4-linux-i586-rpm.bin を実行したところ下記の様に表示されるのですが、何がまずいのでしょうか。 どなたかご指摘お願いいたします。 また、参考になるURL等ありましたら教えて頂きたいと思います。よろしくお願いいたします。 ---------------------------------------------------------- ./jdk-7u4-linux-i586-rpm.bin: line 1: html: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 2: head: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 3: title: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 4: META: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 5: link: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 6: link: No such file or directory : command not found6-rpm.bin: line 7: ./jdk-7u4-linux-i586-rpm.bin: line 8: body: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 9: div: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 10: table: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 11: tr: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 12: syntax error near unexpected token `<' ./jdk-7u4-linux-i586-rpm.bin: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.g'f" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td>

  • cygwinをインストールしたところエラーメッセージがでてきてしまいました。

    こんなメッセージです。 mkdir: cannot create directory `': No such file or directory Copying skeleton files. These files are for the user to personalise their cygwin experience. These will never be overwritten. `./.bashrc' -> `//.bashrc' /usr/bin/install: cannot create regular file `//.bashrc': No such file or direct ory `./.bash_profile' -> `//.bash_profile' /usr/bin/install: cannot create regular file `//.bash_profile': No such file or directory `./.inputrc' -> `//.inputrc' /usr/bin/install: cannot create regular file `//.inputrc': No such file or direc tory 問題なく使える?みたいですけどどうすれば直るでしょうか?ちなみに一度インストールしたところgcc: command not foundとでてコンパイラができなかったので参考書についていたcygwinをインストールしたところこのメッセージがでてきてしまいました。(コンパイラはできるようになりました。)

  • sudoでシェルスクリプトを実行させたい

    /usr/bin/sudo を使って、xxx.shを実行させたいので、設定でxxx.shを許可しました。 その後Apacheで動くCGI(perlスクリプト)から、``を使って実行させようと考えています。 このときにこのxxx.shがうまく動きません。多分シェルにアクセスできないのだと思いますが、どうしたらこのスクリプトをroot権限で動かす事ができるようになるのでしょうか。関係あるかどうかわかりませんが、xxx.shの中身はディレクトリ作成コマンドなどです。ネットで検索したら、シェルスクリプトだけ許可にすればよいとあったのですが・・。セキュリティ的には/bin/shを許可するのはまずそうな気がするのですが、こちらを許可してもよいものでしょうか。 環境等 xxx.sh 755 所有者(user1) Apache実行ユーザ (apache) CGIの実行ユーザ(apache?) 挑戦したコマンド(とアパッチのログ) `/usr/bin/sudo sh ./xxx.sh`; ->パスワード求められます (/bin/shの権限がない?) `/usr/bin/sudo ./xxx.sh`; ->/usr/bin/sudo: unable to exec ファイルのパス No such file or directory (xxx.shのファイルの場所はあってます) `/usr/bin/sudo フルパス/xxx.sh`; ->/usr/bin/sudo: unable to exec ファイルのパス No such file or directory (xxx.shのファイルの場所はあってます) 不足の点などあればご指摘ください。

  • bad interpreterで、シェルが使えません(T_T)

    RedHat9ではよく以下のような胃の痛いような エラーがでます。 rootでシェルが実行できないのですが、 どうすれば実行できるでしょうか? ■1.shというシェルファイル #!/bin/sh /bin/touch 1 ■1.shを実行するとエラーになります。。 # ./1.sh : bad interpreter: そのようなファイルやディレクトリはありません ■cronでも動きません。。 /bin/bash: 1.sh: /bin/sh: bad interpreter: No such file or directory

  • ./configureの次にmakeが出来ません

    ubuntu8.04を使っているLinux初心者です。 rcssbase-11.1.0.tar.gz というものをインストールしたいのですが、makeを行うと、'all'に対して行うべき事はありませんと出ます。 ./configureの段階でうまくいっていないのだとは思うのですが、何をどう改善すればいいのか分かりません。実行メッセージのどの部分を載せたらいいのか分からないので、怪しいかなと思う所(noやerrorが出た所)を載せます。 .......... checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking sys/dl.h usability... no checking sys/dl.h presence... no checking for sys/dl.h... no checking dld.h usability... no checking dld.h presence... no checking for dld.h... no checking mach-o/dyld.h usability... no checking mach-o/dyld.h presence... no checking for mach-o/dyld.h... no checking ltdl.h usability... no checking ltdl.h presence... no checking for ltdl.h... no checking for cvs... no config.status: creating config.h config.status: config.h is unchanged .......... あと、config.logを表示させたらこんな表示がありました。 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown configure:8221: result: no /usr/bin/ld: cannot find -lsocket configure:8916: result: no /usr/bin/ld: cannot find -lposix4 ac_cv_func_shl_load=no ac_cv_header_dl_h=no ac_cv_header_dld_h=no ac_cv_header_errno_h=yes ac_cv_header_ltdl_h=no conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:11:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:11:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:69: error: '_Bool' does not name a type conftest.cpp:73: error: 'ac__type_new_' was not declared in this scope conftest.cpp:73: error: expected primary-expression before ')' token conftest.cpp:73: error: expected `)' before numeric constant conftest.cpp:75: error: 'ac__type_new_' was not declared in this scope conftest.cpp:106:16: error: dl.h: No such file or directory conftest.cpp:73:16: error: dl.h: No such file or directory conftest.cpp:106:20: error: sys/dl.h: No such file or directory conftest.cpp:73:20: error: sys/dl.h: No such file or directory conftest.cpp:106:17: error: dld.h: No such file or directory conftest.cpp:73:17: error: dld.h: No such file or directory conftest.cpp:106:25: error: mach-o/dyld.h: No such file or directory conftest.cpp:73:25: error: mach-o/dyld.h: No such file or directory conftest.cpp:115:18: error: ltdl.h: No such file or directory conftest.cpp:82:18: error: ltdl.h: No such file or directory conftest.cpp:82:28: error: ac_nonexistent.h: No such file or directory ........ (dl.h...noなどの表示がありますが、これは何ですか?(すみません、検索してみてもよく分からなかったので)noというのは絶対にあってはいけないのですか?) 情報が足りなすぎるかもしれませんが、よろしくお願いします。