In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Compile and install MySQL (turn) [@ more@] under solrais many friends will have some problems when compiling mysql under sun. Now I sort out the compilation process as follows, hoping to help you.
Environment:
Sun250+solaris8
Process:
First of all, to install the compilation environment of solaris8, go to http://www.sunfreeware.com/ to download the software:
1.autoconf-2.13-sol8-sparc-local.gz
2.automake-1.4-sol8-sparc-local.gz
3.bison-1.28-sol8-sparc-local.gz
4.gcc-2.95.3-sol8-sparc-local.gz
5.gzip-1.3-sol8-sparc-local
6.make-3.79.1-sol8-sparc-local.gz
Go to www.gnu.org to download gnu_tar, the latest version is tar-1.13.tar.gz
Setting environment variables, the compilation process needs to use some commands of sun, but these commands are not in your PATH by default, so we need to add them manually. I use bash, so modify the PATH in the root user. bash_profile to
PATH=/usr/local/sbin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/sbin: $PATH: $HOME/bin:/usr/local/mysql/bin:
To log out and log back in to make the variable effective, follow these steps to install the software:
1.pkgadd-d gzip-1.3-sol8-sparc-local
2.gunzip autoconf-2.13-sol8-sparc-local.gz
3.gunzip automake-1.4-sol8-sparc-local.gz
4.gunzip gcc-2.95.3-sol8-sparc-local.gz
5 gunzip bison-1.28-sol8-sparc-local.gz
6.pkgadd-d autoconf-2.13-sol8-sparc-local
7.pkgadd-d automake-1.4-sol8-sparc-local
8.pkgadd-d gcc-2.95.3-sol8-sparc-local
9.pkgadd-d make-3.79.1-sol8-sparc-local
10.gunzip tar-1.13.tar.gz
11.tar xvf tar-1.13.tar
12.cd tar-1.13
13../configure-prefix=/usr/local/gnu_tar
14. Make
15. Make install
16. Add vi ~ / .bashrc
Alias tar='/usr/local/gnu_tar/bin/tar'
17.alias tar='/usr/local/gnu_tar/bin/tar'
18.tar zxvf mysql-3.23.44.tar.gz
19.cd mysql-3.23.44
20.which perl (check the location of your system's perl, sun is under / bin)
21.cd tests changed the location of the perl interpreter for all files ending in pl in this directory to #! / bin/perl
22.cd.. (return to the previous directory)
23. CC=gcc CFLAGS= "- O6" CXX=gcc CXXFLAGS= "- O6-felide-constructors-fno-exceptions-fno-rtti". / configure-prefix=/usr/local/mysql-with-mysqld-user=mysql-with-charset=gbk-with-extra-charsets=all
24.make
25.make install
26.cd support-files
27.chmod 700 mysql.server
28.cp mysql.server / etc/rc2.d/S90MySQL (the above three parts are designed to automatically start the MySQL service when the system boots)
twenty-nine。 Modify .bash _ profile to add the path to mysql, which I have added, so this one is avoided.
30.useradd-d / usr/local/mysql/var-s / bin/false mysql (create MySQL running user)
31.mysql_install_db (initial message database)
32.chown-R mysql/ usr/local/mysql/var
33./etc/rc2.d/S90MySQL start (start the database)
34.mysql (Connectivity Test)
[root@mailtest support-files] # mysql
Welcome to the MySQL monitor. Commands end with; or g.
Your MySQL connection id is 1 to server version: 3.23.44
Type 'help;' or' h' for help. Type 'c'to clear the buffer.
Mysql >
thirty-five。 Installation completed
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.