`
javasogo
  • 浏览: 1777594 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

编译NS问题

阅读更多

这两天,一直在编译NS,主要遇到的问题是:
1.ns-allinone-2.30.tar.gz不能编译成功
2.改为Pieces install
没有想到遇到TK4.14编译不成功,主要因为缺少XFree386
一开始一直不知道,GOOGLE也没有搜索的答案,后来逐个看日志,终于发现这个问题,这个小问题竟然花了一天
现总结编译的所用到的命令:
1../configure
2.make clean; make
3.make test
4.make install
另外在linux下的命令:
1.安装RPM
rpm -ivh XFree86-devel-4.1.0-50
2.查询RPM
rpm -qa |grep XFree86
3.解决冲突和软件已安装
rpm -ivh XFree86-devel-4.1.0-50 --replacefiles

4.更新RPM

rpm -Uvh XFree86-devel-4.1.0-50
4.卸载RPM

rpm -e XFree86-devel-4.1.0-50

使用otcl-1.13 install ,依然出现
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tclcl=no
的错误,按照要求使用:
1../configure with --with-tcl选项,也不行
2.使用nsuser用户登陆,./configure还是出现同样的错误,同样也增加with --with-tclcl也不行
3.后来实在没有办法,把tclcl文件(之前也同样编译过),重新编译,并重新使用nsuser登陆,OK,成功~~~~~~~~~
总结下来,就是要把unix环境掌握,并使用手工编译的方法,可以做到灵活的安装。
Problem 2:
当使用FreeBSD时
1.ns example1.tcl
报xhost: unable to open display 错误,查阅网上的很多资料都无法解决
网上大致的方法时:
a.xhost +
b.add DISPLAY环境变量
c.使用root用户,或改用其他用户
d.删除Xauthority文件
这些方法对我来说都不行,最后时必须现使用initx命令,然后不用增加变量,就自动可以
当使用startx进入就是不行,就因为这个问题,搞了一个晚上.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics