最近在windows上用cygwin安裝NS2遇到點小問題,如下是解決方案,做一下備忘。
pango1.0.sh exit code 1
http://sourceforge.net/mailarchive/forum.php?set=custom&viewmonth=&viewday=&forum_name=cygwin-ports-general&style=nested&submit=Change+View
| [Cygwin-ports-general] pango1.0.sh exit code 1 From: Martin Baute <solar@ro...> - 2013-01-23 08:42 |
Hi there,recently we did a couple of "fresh" Cygwin installations, andcame across an issue.Some package dragged in libpango1.0 as dependency. That noteable'spostinstall script fails with exit code 1, causing some confusion.Some inspection of /etc/postinstall/pango1.0.sh quickly showed thereason:/usr/bin/pango-querymodules > /etc/pango/pango.modulesThe directory /etc/pango does not exist. Creating it beforehandresolves the error.Regards,-- Martin Bautesolar@... 另一個小問題: 安裝ns2時,gcc不能工作,使用gcc編譯一個.c檔案也不行,說缺少庫,終於找到解決辦法 http://wangjunle23.blog.163.com/blog/static/117838171201110853555933/ 如果你在安裝cygwin時,只安裝了gcc4, g++4,在某些程式執行 configure 時會出現如下的錯誤(configure日誌):/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries:cygmpfr-4.dll: cannot open shared object file: No such file or directory不用著急,這是因為在安裝時,沒有安裝mpfr(版本4)所至,開啟cygwin.exe,輸入mpfr,下載libmpfr4至可。 |