LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2013, 01:21 PM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 262

Rep: Reputation: 2
Installing mysql using binary on ubuntu 9


Hi,
I am trying to install mysql-5.0.96.tar.gz on my laptop(i5). I have found following commands from a website:
Quote:
To install and use a MySQL binary distribution, the basic command sequence looks like this:
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server



I am getting following error:
Code:
groupadd: cannot lock /etc/group;  try again later.
If i type
Quote:
$whereis mysql
mysql: /etc/mysql
Somebody plz guide me.

Zulfi.

Last edited by zak100; 08-13-2013 at 01:24 PM.
 
Old 08-13-2013, 02:06 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
First off,
Support for 9.04 ended October 2010, while 9.10 ended April 2011
You do not get security updates.
I would strongly recommend you install a current version

http://www.ubuntu.com/download/desktop
note:
Quote:
Ubuntu 12.04.2 LTS is a long-term support release. It has continuous hardware support improvements as well as guaranteed security and support updates until April 2017.
Now, if you still want to stick with what you have..
http://askubuntu.com/questions/48025...e-with-apt-get
will give you some pointers on updating your sources.list thus allowing you to install mysql packaged by Ubuntu

I assumed you are trying to install via mysql-VERSION-OS.tar.gz because apt-get 'fails'
if not and neither of the above are acceptable, .. humour me and explain why

Honestly, upgrade
you currently have very high security risks
 
Old 08-14-2013, 04:44 AM   #3
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
I dont have the internet. I dont know if these changes would be useful or not. I have tried to install ubuntu 12.04 but i have encountered several problems. I have posted these problems on this forum. I have to buy an external disk for this purpose.

However i have tried and the update command is not working:
Code:
root@zulfiqar-laptop:~# sudo apt-get update
Err http://old-releases.ubuntu.com karmic Release.gpg
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/main Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/restricted Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/universe Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/multiverse Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates Release.gpg
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/main Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/restricted Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/universe Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/multiverse Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releaseses.ubuntu.com karmic-updates Release.gpg
  Could not resolve 'old-releaseses.ubuntu.com'
Err http://security.ubuntu.com karmic-security Release.gpg
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/main Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/restricted Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/universe Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/multiverse Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/Release.gpg  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/main/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/restricted/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/universe/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/multiverse/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/Release.gpg  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/main/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/restricted/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/universe/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releaseses.ubuntu.com/ubuntu/dists/karmic-updates/Release.gpg  Could not resolve 'old-releaseses.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/Release.gpg  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Some index files failed to download, they have been ignored, or old ones used instead.
root@zulfiqar-laptop:~# vi /etc/apt/sources.list
root@zulfiqar-laptop:~# sudo apt-get update
Err http://old-releases.ubuntu.com karmic Release.gpg
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/main Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/restricted Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/universe Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/multiverse Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates Release.gpg
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/main Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/restricted Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/universe Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/multiverse Translation-en_IN
  Could not resolve 'old-releases.ubuntu.com'
Err http://security.ubuntu.com karmic-security Release.gpg
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/main Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/restricted Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/universe Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/multiverse Translation-en_IN
  Could not resolve 'security.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/Release.gpg  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/main/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/restricted/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/universe/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/multiverse/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/Release.gpg  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/main/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/restricted/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/universe/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/i18n/Translation-en_IN.bz2  Could not resolve 'old-releases.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/Release.gpg  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/i18n/Translation-en_IN.bz2  Could not resolve 'security.ubuntu.com'

W: Some index files failed to download, they have been ignored, or old ones used instead.
root@zulfiqar-laptop:~#
My previous source.list file was:

Code:
deb http://in.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic universe
deb http://in.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://in.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
Now the file is:

Code:
#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ karmic universe
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
Kindly guide me how to install ubuntu using the binary.

Zulfi.

Last edited by zak100; 08-14-2013 at 04:47 AM.
 
Old 08-14-2013, 09:17 AM   #4
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,

I am getting error in running make file:
Code:
make && make install
:
:

(Sorry i dont have the entire output
../depcomp: line 571: exec: g++: not found
make[2]: *** [my_new.o] Error 127
make[2]: Leaving directory `/usr/local/mysql-5.0.96/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql-5.0.96'
make: *** [all] Error 2

and script
Code:
root@zulfiqar-laptop:/usr/local/mysql-5.0.96# ./scripts/mysql_install_db
FATAL ERROR: Could not find /usr/local/mysql/bin/my_print_defaults

If you are using a binary release, you must run this script from
within the directory the archive extracted into.  If you compiled
MySQL yourself you must run 'make install' first.



root@zulfiqar-laptop:/usr/local/mysql-5.0.96# cd
root@zulfiqar-laptop:~# ls
root@zulfiqar-laptop:~# cd mysql
bash: cd: mysql: No such file or directory
root@zulfiqar-laptop:~#
However the earlier command:
Code:
./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-mysqld-user=mysql --with-unix-socket-path=/tmp/mysql.sock --with-charset=utf8
with the inclusion of curses worked fine. Somebody plz guide me.

I am following:
Code:
http://ghita.org/install-mysql-apache-php-on-linux.html
 
Old 08-14-2013, 12:00 PM   #5
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
"apt-get update" isn't working because you don't have an internet connection (and because Karmic is end-of-life).
"make" is failing because you don't have gcc installed. You can easily install this (as part of the useful "build-essential" metapackage) on a supported Ubuntu release with an internet connection by using the following commands:

Code:
sudo apt-get update
sudo apt-get install build-essential
 
Old 08-14-2013, 12:22 PM   #6
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
my friend thanks for your response but you are reminding me of the famous problem. I tried several times on this forum to install ubuntu 12.04 but it failed. There must be some solution for this make file problem. I have found a link for this but I dont have yum on my system. So i am stuck.
Kindly guide me otherwise it would become another unsolved problem.
Zulfi.
 
Old 08-14-2013, 12:31 PM   #7
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
I apologize that I am unable to Support an Unsupported release of Ubuntu.
There are dozens of distributions listed at http://www.distrowatch.com and I hope that you are able to find a currently-supported distro that supports your hardware. Good luck!
 
Old 08-14-2013, 03:03 PM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
New Plan

After reviewing your other posts with regards to installing Ubuntu, I think you need some 'hands on' help.

do a web search for
LUG <your city> <your country>

LUG = Linux user group

Hopefully you will find one local to yourself,
You can then introduce yourself on their mailing list, and go along to a meeting taking your laptop. I'm sure they will be willing to help.

It will be like having a bunch of experts with you.. because you will have a bunch of experts with you
 
Old 08-15-2013, 10:17 AM   #9
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
Thanks for this interesting plan. Actually I dont find unix users so much in my area. Every body uses windows. I would use this plan as a last resort. First i would try to act on another advise given to me by one your forum experts i.e. installing ubuntu on an external h/d. If i get any problem i would post on this forum. If unsolved i would try your option. Thanks for your time.

Zulfi.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Proftpd with MySQL in Ubuntu Linux LXer Syndicated Linux News 0 08-29-2011 10:21 PM
Installing PHP and MySQL on Ubuntu Server 9.10 KellyT Linux - Server 7 11-02-2009 07:26 AM
Installing mysql server on ubuntu 9.04. tareque Linux - Software 1 10-01-2009 05:05 AM
installing MySQL on Ubuntu Rami_Rouchdi Linux - Software 4 07-22-2009 12:43 AM
Installing MySQL From Binary matsko Linux - Software 1 08-12-2007 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration