Node
Today, I tried to build node from scratch on Cygwin.
I chose v0.5.9, so I can also use npm. Actually, I can’t build v0.5.8 by gcc4 4.5.3-3.
Enviroment
- Cygwin: 1.7.9-1
- devel->gcc4-g++: 4.5.3-3
- devel->git: 1.7.5.1-1
- devel->make: 3.81-2
- devel->pkg-config: 0.23b-10
- devel->zlib-devel: 1.2.5-1
- libs->openssl-devel: 0.9.8r-2
- net->openssl: 0.9.8r-2
- python->python: 2.6.5-2
I follow official document, and edit node/deps/uv/src/unix/cygwin.c, let it include unistd.h, so it will understand what is _SC_PAGESIZE.
Looks like the missing including is still a problem in v0.5.10, but I am not familiar with git society and I am a shameguy.
EDIT: cygwin doesn’t get alone well with npm, so I have to do it again on Ubuntu D:
剛剛自己在 cygwin上編 node,
為了 npm,用的是 v0.5.9。另外,用 gcc4 4.5.3-3沒辦法編 v0.5.8。
環境
- Cygwin: 1.7.9-1
- devel->gcc4-g++: 4.5.3-3
- devel->git: 1.7.5.1-1
- devel->make: 3.81-2
- devel->pkg-config: 0.23b-10
- devel->zlib-devel: 1.2.5-1
- libs->openssl-devel: 0.9.8r-2
- net->openssl: 0.9.8r-2
- python->python: 2.6.5-2
參考 官方安裝文件,還得對 node/deps/uv/src/unix/cygwin.c做點修改,補上忘了 include的 unistd.h,不然老是說 _SC_PAGESIZE未定義。
在 v0.5.10版中,那個 include還是沒加進去,但是我既害羞又不瞭解 git社群,還是先觀望什麼都別說吧。
EDIT: cygwin跟 npm處不來,所以我投向 Ubuntu的懷抱了 D: