作者cupids1117 (C'est la vie)
看板LinuxDev
标题[问题] cygwin 下 compile 问题
时间Tue Apr 10 08:15:56 2007
我是 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
1F:推 wlsabcd:加一下cl的PATH吧 04/10 08:22
2F:→ cupids1117:喔喔..原来环境变数改一下就可以..谢谢 04/10 13:56