免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: door10000
打印 上一主题 下一主题

[FreeBSD] 从freebsd9.1升级到10.0后出现大量ports无法正常工作 [复制链接]

论坛徽章:
3
水瓶座
日期:2014-04-10 15:26:302015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:58:11
11 [报告]
发表于 2014-01-24 20:30 |只看该作者
这个问题,好象是因为,你的ports的选项,自定义很多,没有用默认的。ports tree已经在FreeBSD 10.0开始,起用optionsNg选项了,你的/etc/make.conf,没有设置这些ports应用的选项参数设置。所以升级完后,pkg2ng转换成二进制应用包时,没有了那些自定义参数设置,全成了默认的设置了。出这样的情况,你可以pkg delete <ports name> 卸载掉,直接进ports所在目录make install clean 再安装过,但因为已经起用optionsNG了,不会再出现参数选择,如果是没冲掉/usr/ports,选项,还是和原来一样。make 完后,就正常。如果是冲掉了,就只好在/etc/make.conf设置这些参数。参数设置方法参考:论坛里这篇的说明来设置:http://bbs.chinaunix.net/thread-4090282-1-1.html

论坛徽章:
0
12 [报告]
发表于 2014-01-24 21:26 |只看该作者
我的做法是 man portmaster
搜索关键词 complete reinstallation
根据关键词一步步做,原来有问题的 port 现在运行正常

论坛徽章:
2
摩羯座
日期:2014-05-26 12:02:462015年辞旧岁徽章
日期:2015-03-03 16:54:15
13 [报告]
发表于 2014-01-25 01:13 |只看该作者
  1. mysql -uroot -p
  2. Enter password:
  3. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
复制代码
升级完了ports mysql 报这个。

论坛徽章:
3
水瓶座
日期:2014-04-10 15:26:302015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:58:11
14 [报告]
发表于 2014-01-25 01:32 |只看该作者
回复 13# door10000
你服务启动了吗?看提示,好象是你没启动服务哦。

论坛徽章:
2
摩羯座
日期:2014-05-26 12:02:462015年辞旧岁徽章
日期:2015-03-03 16:54:15
15 [报告]
发表于 2014-01-25 02:01 |只看该作者
重新安装了一下mysql重要可以用了。
不过还有好多没通过。

论坛徽章:
0
16 [报告]
发表于 2014-01-25 15:34 |只看该作者
23.2.3. Major and Minor Version Upgrades

Upgrades from one minor version of FreeBSD to another, like from FreeBSD 9.0 to FreeBSD 9.1, are called minor version upgrades. Generally, installed applications will continue to work without problems after minor version upgrades.

Major version upgrades occur when FreeBSD is upgraded from one major version to another, like from FreeBSD 8.X to FreeBSD 9.X. Major version upgrades remove old object files and libraries which will break most third party applications. It is recommended that all installed ports either be removed and re-installed or upgraded after a major version upgrade using a utility such as ports-mgmt/portmaster. A brute-force rebuild of all installed applications can be accomplished with this command:

# portmaster -af

This will ensure everything will be re-installed correctly. Note that setting the BATCH environment variable to yes will answer yes to any prompts during this process, removing the need for manual intervention during the build process.

论坛徽章:
2
摩羯座
日期:2014-05-26 12:02:462015年辞旧岁徽章
日期:2015-03-03 16:54:15
17 [报告]
发表于 2014-01-25 20:37 |只看该作者
回复 16# 芭比小柒
portmaster -af 已经用过了。大部分已经ok了。但是还是有部分重新编译出错了。apache22和一些samba应用。


   

论坛徽章:
0
18 [报告]
发表于 2014-01-25 23:09 |只看该作者
你可以ktrace和kdump看看到底是哪里出了问题

论坛徽章:
2
摩羯座
日期:2014-05-26 12:02:462015年辞旧岁徽章
日期:2015-03-03 16:54:15
19 [报告]
发表于 2014-01-26 02:32 |只看该作者
终于好了用portmastr -af把ports重新安装。报错的就直接卸载。。

论坛徽章:
2
摩羯座
日期:2014-05-26 12:02:462015年辞旧岁徽章
日期:2015-03-03 16:54:15
20 [报告]
发表于 2014-01-26 22:29 |只看该作者
也没说死机呀。回复 18# ykklle


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP