2016-06-12 1 views
0

私はCygwinプログラムには比較的新しいので、編集して実行する必要がある.shファイルがあります。私は現在Windows 10で動作しています。自分のマシンにCygwin64ターミナルをインストールしました。次のようにCygwinで.shファイルを編集して実行するのに問題があります

必要な手順の完全なリストは以下のとおりです。

  1. libtoolがインストールされているようにしてください。
  2. https://github.com/google/protobuf/からprotobufをダウンロードします(希望する場所でZIPおよびunZIPをダウンロードするか、またはrepoをクローンします)。CuraEngineとGUIの間の通信にプロトコルバッファが使用されます。
  3. protobufをインストールする前に、autogen.sh:#を使用してコメント行18を38行に変更します。 gtest-1.7.0への依存関係が削除されます。いるProtobufディレクトリから
  4. 実行autogen.sh:$ ./autogen.sh
  5. $ ./configure
  6. $ make
  7. $ make install # Requires superused priviliges. (In case the shared library cannot be loaded, you can try "sudo ldconfig" on Linux systems)

私がいるProtobufをインストールする前に3:

を取得したら、変更autogen.sh :#を使用して、18行目から38行目までのコメント行。 gtest-1.7.0への依存関係が削除されます。

適切な編集を行うために、Cygwinで.shファイルを開く際に問題が発生しています。私も.SHファイルを実行するには、このコマンドをしようとすると

は:誰もが、それは希望この問題の解決になど、いくつかの洞察力を持っている場合

Could not find source code. Make sure you are running this script from the root of the distribution tree.

$ '/cygdrive/c/Users/Thomas/Desktop/3D Printing/protobuf-master/autogen.sh' 

私はエラーが表示されます大変感謝します。あなたはautogen.shにこのtestからエラーを取得している

+2

「autogen.sh」を実行するだけです。最初に '' cd/''/cygdrive/c/Users/Thomas/Desktop/3D Printing/protobuf-master/'にコピーし、'。/ autogen.sh' – deepmax

答えて

0

:このtest

# Check that we're being run from the right directory. 
if test ! -f src/google/protobuf/stubs/common.h; then 
    cat >&2 << __EOF__ 
Could not find source code. Make sure you are running this script from the 
root of the distribution tree. 
__EOF__ 

common.hパスがちょうどcdそれにスクリプトを実行する前に、ディレクトリをprotbufに対する相対インストールです。

関連する問題