2012-10-20 109 views
0

誰能告訴我在Cygwin setup.exe中可以找到以下文件的位置?在Cygwin中丟失了一些文件

sys/socket.h 
netinet/in_systm.h 
netinet/in.h 
netinet/ip.h 
arpa/inet.h 
netdb.h 

這裏是-v正在打印

$ make 
gcc -g -c -v it.c 
Using built-in specs. 
Target: i686-w64-mingw32 
Configured with: ../gcc44-svn/configure --target=i686-w64-mingw32 --host=i686-w6 
4-mingw32 --disable-multilib --disable-nls --disable-win32-registry --prefix=/mi 
ngw32 --with-gmp=/mingw32 --with-mpfr=/mingw32 --enable-languages=c,c++ 
Thread model: win32 
gcc version 4.4.3 (GCC) 
COLLECT_GCC_OPTIONS='-g' '-c' '-v' '-mtune=generic' 
c:/strawberry/c/bin/../libexec/gcc/i686-w64-mingw32/4.4.3/cc1.exe -quiet -v -ip 
refix c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/ it.c -quiet -dumpba 
se it.c -mtune=generic -auxbase it -g -version -o C:\Users\AppData\Local\ 
Temp\ccuWjX0W.s 
ignoring nonexistent directory "/mingw32/include" 
ignoring duplicate directory "c:/strawberry/c/lib/gcc/../../include" 
ignoring duplicate directory "c:/strawberry/c/lib/gcc/../../lib/gcc/i686-w64-min 
gw32/4.4.3/include" 
ignoring duplicate directory "c:/strawberry/c/lib/gcc/../../lib/gcc/i686-w64-min 
gw32/4.4.3/include-fixed" 
ignoring duplicate directory "c:/strawberry/c/lib/gcc/../../lib/gcc/i686-w64-min 
gw32/4.4.3/../../../../i686-w64-mingw32/include" 
#include "..." search starts here: 
#include <...> search starts here: 
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../../include 
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/include 
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/include-fixed 
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-ming 
w32/include 
/mingw/include 
End of search list. 
GNU C (GCC) version 4.4.3 (i686-w64-mingw32) 
     compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version 2.4.2-p 
3. 
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 
Compiler executable checksum: 4728d1fc720cf46696475c98813fbdef 

我認爲這是在尋找草莓的文件。

回答

0

注意:netinet/in_system.h實際拼寫爲netinet/in_systm.h;我編輯了你的問題來糾正它。

這些都應該是cygwin包的一部分。沒有該軟件包的情況下,您不能安裝Cygwin。

它們全都在/usr/include之下。

$ cygcheck -c cygwin 
Cygwin Package Information 
Package    Version  Status 
cygwin    1.7.16-1  OK 
$ cygcheck -l cygwin | wc -l 
280 
$ cygcheck -l cygwin | egrep 'sys/socket.h|netinet/in_systm.h|netinet/in.h|netinet/ip.h|arpa/inet.h|netdb.h' 
/usr/include/netdb.h 
/usr/include/netinet/in.h 
/usr/include/netinet/in_systm.h 
/usr/include/netinet/ip.h 
/usr/include/arpa/inet.h 
/usr/include/sys/socket.h 
$ 

如果這些文件丟失,你可以嘗試重新安裝cygwin包 - 但首先要確保你在正確的地方找他們,/usr/include下。

+0

我的cygwin包含的文件看起來像這樣的netinet/in.h,它確實在你說的目錄下,我如何編輯文件指向正確的目錄,嘗試使用路徑窗口C:\ path to file,沒有看到它 –

+0

@spaceranger:你在說什麼「cygwin包含文件」?如果你想在C源文件中包含'netinet/in.h',使用'#include ';編譯器知道要查看'/ usr/include'。 –

+0

這些文件位於/ usr/include中,但仍然給我丟失的文件錯誤 –