portinstall ports.conf portupgrade

|

安装 /usr/ports/ports-mgmt/portconf/

会在/usr/local/etc/下创建 ports.conf 文件

在文件内写上make 参数,如 mysql

cat /usr/local/etc/ports.conf
databases/mysql*-server: BUILD_OPTIMIZED=yes|WITH_XCHARSET=all|BUILD_STATIC=yes

安装 portinstall databases/mysql50-server

ports的安装方法

cd /usr/ports/databases/mysql50-server/

make install clean && rehash

具体编译参数在ports.conf 里定义好就可以了,之后使用portupgrade更新起来,也不会出错了

 

About this Entry

This page contains a single entry by 清茶 published on April 22, 2008 10:38 PM.

查看系统相关信息 was the previous entry in this blog.

在用的nginx的配置,不断更新完善 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.1