./configure –prefix=/path/mysql
make
make install
在make的时候,遇到
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../..//libstdc++.la’ is not a valid libtool archive
解决方法:
编辑/usr/sfw/lib/libstdc++.la,内容如下:
—-
# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname=’libstdc++.so.6′
# Names of this library.
library_names=’libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’
# The name of the static archive.
old_library=’libstdc++.a’
# Libraries that this one depends upon.
dependency_libs=’-lc -lm -L/usr/sfw/lib -lgcc_s’
# Version information for libstdc++.
current=6
age=0
revision=3
# Is this an already installed library?
installed=yes
# Files to dlopen/dlpreopen
dlopen=”
dlpreopen=”
# Directory that this library needs to be installed in:
libdir=’/usr/sfw/lib’
—-
和/usr/sfw/lib/64/libstdc++.la
—-
# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname=’libstdc++.so.6′
# Names of this library.
library_names=’libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’
# The name of the static archive.
old_library=’libstdc++.a’
# Libraries that this one depends upon.
dependency_libs=’-L/lib/64 -lc -lm -L/usr/sfw/lib/64 -lgcc_s’
# Version information for libstdc++.
current=6
age=0
revision=3
# Is this an already installed library?
installed=yes
# Files to dlopen/dlpreopen
dlopen=”
dlpreopen=”
# Directory that this library needs to be installed in:
libdir=’/usr/sfw/lib/64′
—-
注意: 去掉文件首尾的—-
Popularity: 19% [?]
