今天重新架设,装,遇到点小麻烦,特总结一下。
BSD爱好者乐园0?4Kh e#}5xD-^BSD爱好者乐园4c@'^4G u+Cj网上以前的文章都是WITH_LINUXTHREADS=yes BUILD_STATIC=yes的,不过从FreeBSD5.x以后的版本下不用LINUXTHREAD啦,用可以得到更好的性能,但是要成动态模式,因此的时候不要再带这两个选项了,用系统默认的吧。
BSD爱好者乐园9G^_Z:FBSD爱好者乐园 ]:x,~I)@Gh)`;s如果你还是按照以前的文章编译,会有错误提示的:
-s j-S%M8WJaPlease see the README.FreeBSD file in the work directory for
+f-C^C ninstructions on how to compile with linuxthreads, and for other
_5d7rj,m+_P p"pissues and problems.
BSD爱好者乐园5K$osVl9y2Q ~~===> Registering installation for linuxthreads-2.2.3_23
]l h4zo===> Returning to build of mysql-server-5.1.24_1
lDq m Et,fJ d1qQError: shared library "lthread.[35]" does not exist
BSD爱好者乐园&Q#y_5e o(rdS&]Q*** Error code 1
BSD爱好者乐园0]{'K#E5c[BSD爱好者乐园-@tbUj3tDStop in /usr/ports/databases/mysql51-server.
}6C(KB4|\ ffb0bGqP4P+O在6.x上用这两个选项还是可以安装的,7.0开始就不行了,具体原因我没研究,直接去掉它安装了。
l%U"vp-M5{BSD爱好者乐园-ysu9CUSo W` z配置为libthr.so:
BSD爱好者乐园 b#Cv.ZWee /etc/libmap.conf
BSD爱好者乐园9hb*V2G1t!S)J1~vt加入
4@I}+Ru]a[mysqld]
1h)S C | _ hilibpthread.so.2 libthr.so.2
BSD爱好者乐园k;B6h2U+^ewaOw0{libpthread.so libthr.so
%oBg4x6E)v}3a重启MySQL。检查
C n/^"F8Rildd /usr/local/libexec/mysqld
}M e{ w@1w)eU;E/usr/local/libexec/mysqld:
BSD爱好者乐园~ QB4q-`c libz.so.4 => /lib/libz.so.4 (0x48662000)
BSD爱好者乐园Kd}#o]wO"W libwrap.so.5 => /usr/lib/libwrap.so.5 (0x48674000)
BSD爱好者乐园)ai!u4lYl4H"V libcrypt.so.4 => /lib/libcrypt.so.4 (0x4867b000)
"gC6s y su!f.S libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x48694000)
BSD爱好者乐园7A5A c-CL7I,v ? JM libm.so.5 => /lib/libm.so.5 (0x48780000)
#t1a O$Bcw.p#WZ libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x48798000)
"P {HC%J4j4~ libthr.so.3 => /lib/libthr.so.3 (0x487a2000)
B kL7ddnA libc.so.7 => /lib/libc.so.7 (0x487b4000)
BSD爱好者乐园J}h'tkq0J6zO,o可以看到:libthr.so.3 => /lib/libthr.so.3 (0x487a2000)
_ U8f ~9p说明已经使用线程库了,呵呵。
阅读(671) | 评论(0) | 转发(0) |