[질문] MySQL rpm설치시의 의존성문제와 소스설치에러 질문점
레드헷 리눅스 8.0release입니다
제가 왔을때
현재 apache : http-2.0.40-8 이 깔려있었고
php 는 4.2.2-8.0.5 가 설치되어있습니다
postgreSQL이 설치되어있는데요 서버에있는 기존의 자료를 건들면안되고(포맷은 안된다는 ㅜ.ㅜ)
여기에다가 MySQL을 깔아하는데요 ... rpm으로는 깔려있지않은데 (rpm -qa | grep mysql해도 암것도 안나옴니다) 소스로 깔려있는지는 모르겠습니다. 소스로 설치된 프로그램을 확인하는 명령어는 먼가요?
일단은 안깔려있다고 생각하고
MySQL-server-4.1.22-0.i386.rpm 를 받아서 설치하려했으나
[root@developer mysql]# rpm -ivh MySQL-server-4.1.22-0.i386.rpm warning: MySQL-server-4.1.22-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 error: Failed dependencies: coreutils is needed by MySQL-server-4.1.22-0
[root@developer mysql]#
이렇게 뜨면서 의존성때문에 안되는데요.. coreutils을 깔아야하나요?
coreutils-5.0.tar.gz를 받아서 설치를 하고 다시했는데요 마치가지 결과가나옵니다.
그래서 소스설치를 하려구
mysql-standard-4.1.22-pc-linux-gnu-i686.tar.gz를 받아서
설치를 하려했으나..
[root@developer mysql-standard-4.1.22-pc-linux-gnu-i686]# ./configure NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it!
To help you a bit, I am now going to create the needed MySQL databases and start the MySQL server for you. If you run into any trouble, please consult the MySQL manual, that you can find in the Docs directory.
Installing all prepared tables Fill help tables
To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: ./bin/mysqladmin -u root password 'new-password' ./bin/mysqladmin -u root -h developer password 'new-password' See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run the ./bin/mysql_fix_privilege_tables. Otherwise you will not be able to use the new GRANT command!
You can start the MySQL daemon with: cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; perl run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com Starting the mysqld server. You can test that it is up and running with the command: ./bin/mysqladmin version
[root@developer mysql]# Starting mysqld daemon with databases from /home/developer/tester/mysql-standard-4.1.22-pc-linux-gnu-i686/data
STOPPING server from pid file /home/developer/tester/mysql-standard-4.1.22-pc-linux-gnu-i686/data/developer 13:19:18 mysqld ended
이렇게 나오고 설치가 되지를 않네요... 물어볼 사람도 없고 한시가 급한데...
설치에서 막혀버리니.. 무능력함에 쪽팔리기도 하고 화도나네요 어떻게 해야할지 고견을 좀 들려주십시요
1.
1.
쩝... redhat 8.0이면 이제 up2date 명령도 안 될테고....
rpm 파일을 찾아다가 설치하는 번거로움을 감수하셔야 할텐데...
나온지 상당히 오래된 버전이라 버그 패치도 안되므로 최신 버전으로 업그레이드하시는게 좋을 듯 합니다.
2.
정 redhat 8.0을 쓰셔야 한다면 redhat 8.0 배포판에 있는 mysql-server rpm 파일을 찾아서 설치하십시오. mysql 홈페이지나 다른 배포판의 rpm 파일을 설치하지 마시고요.
그리고 소스로 설치되어있는 mysql이 있다면 날려버리시고요.
--
academic은 제 고등학교 때 동아리 이름입니다.
academic, 아주 가끔은 저도 이랬으면 좋겠습니다.
----
academic은 제 고등학교 때 동아리 이름입니다.
academic, 아주 가끔은 저도 이랬으면 좋겠습니다.
위의 파일이 인스톨이 필요없이
설치가 가능한 파일인것같더군요
위의 상태는 일단은 설치가 된상태인데 마지막 부분
STOPPING server from pid file /home/developer/tester/mysql-standard-4.1.22-pc-linux-gnu-i686/data/developer 13:19:18 mysqld ended
이 나오는 이유를 /usr/local/mysql/data 밑의 유저.err파일을보니
080323 19:57:43 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
080323 19:57:43 [ERROR] Do you already have another mysqld server running on port: 3306 ?
080323 19:57:43 [ERROR] Aborting
이런 메세지가 있더군요 포트가 충돌이나는건지..
1. 소스로 설치된
1.
소스로 설치된 프로그램을 확인하는 명령어는 없습니다.
그래서 소스 컴파일로 설치하는 걸 권장하지 않는 것이기도 하고요.
소스 컴파일로 설치하실 것이라면 조금 더 공부하셔서 rpm을 만들어 설치하시는게 좋지만...
그러러면 조금 더 공부를 하셔야 할 듯.
2.
에러 메시지로 보면 이미 다른 사람이 소스 컴파일을 통해서 mysql을 설치, 실행 중인 듯 하네요.
소스로 설치할 때는 /usr/local 밑에 설치하는 게 일반적인 관습입니다.
/usr/local 밑을 뒤져보시죠.
--
academic은 제 고등학교 때 동아리 이름입니다.
academic, 아주 가끔은 저도 이랬으면 좋겠습니다.
----
academic은 제 고등학교 때 동아리 이름입니다.
academic, 아주 가끔은 저도 이랬으면 좋겠습니다.
댓글 달기