Decompress mysql4.0.26
Root @ www:/db # tar zxvf mysql-4.0.26.tar.gz
Back up the data directory of mysql5
Root @ www:/db # tar czvf mysql5.data.tar.gz mysql5
Compile
Root @ www:/db # cd mysql-4.0.26
Root @ www:/db/mysql-4.0.26 #./configure -- prefix =/db/mysql4
Last tip:
Checking "LinuxThreads"... "Not found"
Configure: error: This is a linux system and Linuxthreads was not
Found. On linux Linuxthreads shocould be used. Please install Linuxthreads
(Or a new glibc) and try again. See the Installation chapter in
Reference Manual for more information.
Why is there no Linuxthreads? View
Root @ www:/db/mysql-4.0.26 # gcc-v
Using built-in specs.
Target: i486-linux-gnu
Configured :.. /src/configure-v -- enable-languages ages = c, c ++, fortran, objc, obj-c ++, treelang -- prefix =/usr -- enable-shared --
With-system-zlib -- libexecdir =/usr/lib -- without-included-gettext -- enable-threads = posix -- enable-nls -- program-suffix =-4.1
-- Enable-_ cxa_atexit -- enable-clocale = gnu -- enable-libstdcxx-debug -- enable-mpfr -- enable-checking = release i486-linux-gnu
Thread model: posix
Gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
Maybe the reason why the gcc version is too new? Check the Internet because the new kernel uses the advanced thread processing method NTPL, so it is like this:
Root @ www:/db/mysql-4.0.26 # cp/usr/include/pthread. h/usr/include/pthread. h. bak
Root @ www:/db/mysql-4.0.26 # echo '/* Linuxthreads */'>/usr/include/pthread. h
Then compile and add the dot Parameter
Root @ www:/db/mysql-4.0.26 #. /configure -- prefix =/db/mysql4 -- with-unix-socket-path =/db/mysql4/mysql. sock -- with-tcp-port = 3304
-- With-low-memory
It is displayed as Found in the Linuxthreads detection area, but it stops later,
Checking whether signal handlers are of type void... yes
Checking for tgetent in-lncurses... no
Checking for tgetent in-lcurses... no
Checking for tgetent in-ltermcap... no
Checking for termcap functions library... configure: error: No curses/termcap li
Brary found
It seems that ncurses will be installed,
Root @ www:/db/mysql-4.0.26 # apt-get install ncurses
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading state information... complete
There is no available software package ncurses, but it is referenced by other software packages.
This may mean that the missing software package may have been deprecated,
Or it can only be found in other release sources
[Content navigation] |
Page 1st: Install mysql4 on ubuntu with mysql5 installed |
Page 2nd: Install mysql4 on ubuntu with mysql5 installed |