[問題] cygwin 下 compile 問題

看板LinuxDev作者 (C'est la vie)時間18年前 (2007/04/10 08:15), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
我是 cygwin 新手之前也沒有接觸過 linux。 我想請問一點問題: 我根據 http://tinyurl.com/389etl 的說明來試試 automake。 首先在 cygwin 下寫一個簡單的 c程式, 然後用 Autoconf 及 Automake 來產生 Makefile 檔, 但最後執行 ./configure 時候卻出現以下錯誤: configure:2207: checking for gcc configure:2234: result: cl configure:2472: checking for C compiler version configure:2479: cl --version >&5 ./configure: line 2480: cl: command not found configure:2482: $? = 127 configure:2489: cl -v >&5 ./configure: line 2490: cl: command not found configure:2492: $? = 127 configure:2499: cl -V >&5 ./configure: line 2500: cl: command not found configure:2502: $? = 127 configure:2525: checking for C compiler default output file name configure:2552: cl conftest.c >&5 ./configure: line 2553: cl: command not found configure:2555: $? = 127 ... configure:2600: error: C compiler cannot create executables See `config.log' for more details. 請問一下這是什麼問題?是因為我有裝 MS Visual studio 所以 compiler 的地方抓到的是 cl 嗎? 又,該如何解決呢? 另一個問題: 在 cygwin 為何使用 chmod +x [filename] 都沒有反應呢? 我用 windows XP home edition,硬碟分割使用 ntfs。 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 24.12.194.115

04/10 08:22, , 1F
加一下cl的PATH吧
04/10 08:22, 1F

04/10 13:56, , 2F
喔喔..原來環境變數改一下就可以..謝謝
04/10 13:56, 2F
文章代碼(AID): #166jS_Iw (LinuxDev)
文章代碼(AID): #166jS_Iw (LinuxDev)