pango1.0.sh exit code 1——cygwin安装小问题

来源:互联网 发布:淘宝首页海报轮播代码 编辑:程序博客网 时间:2024/05/16 05:01

最近在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至可。