LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-08-2009, 04:12 AM   #1
l33tmaster104
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Problem installing MySQL 5.1.38: No targets specified and no makefile found.


I just started messing with linux today so a lot of things are very confusing to me so please bare with me.

For a server I am going to be running I will be using MySQL paired with it, but I keep running into the same exact problem every time. Following the instructions on the MySQL website I use make and get this error:

Code:
*** No targets specified and no makefile found.  Stop.
I'm running on Debian if that helps. Additionally, I have gcc and make installed. Thank you for your help!
 
Old 09-08-2009, 04:28 AM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
Not having looked at MySQL's website... I'm guesing: did you run ./configure before trying to run make?
 
Old 09-08-2009, 04:38 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I'd also say yout forget to ./configure watch out for the ./ in front it needs to be there cause you want to call a file resident in the local directory.

On a sitenote I can advise you the apt-get and aptitude family which take care of packages under debian. Debian has quite a good package managment also not always uptodate but things work nice together.
 
Old 09-08-2009, 01:19 PM   #4
l33tmaster104
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
I'd also say yout forget to ./configure watch out for the ./ in front it needs to be there cause you want to call a file resident in the local directory.

On a sitenote I can advise you the apt-get and aptitude family which take care of packages under debian. Debian has quite a good package managment also not always uptodate but things work nice together.
I forgot to mention that I did use ./configure. I'm not entirely sure why there would be a problem when I'm following the instructions. I'll probably just use aptitude if it turns out MySQL can't be compiled due to wonky stuff like this.

Last edited by l33tmaster104; 09-08-2009 at 01:21 PM.
 
Old 09-08-2009, 02:34 PM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by l33tmaster104 View Post
I forgot to mention that I did use ./configure. I'm not entirely sure why there would be a problem when I'm following the instructions. I'll probably just use aptitude if it turns out MySQL can't be compiled due to wonky stuff like this.
I would probably go the apt-get install way. This makes mangement of the software package easier. I use it on all my systems. Great for ease of installing patches to the mysql server system.

If you did run the ./configure then it should have created the makefile for you. But the default installation of debian doesn't come with compiling tools. you might want to do the following as root
Code:
apt-get install gcc g++ automake bison build-essentials
that should get you the software that you need for compiling software
 
Old 09-09-2009, 01:58 AM   #6
l33tmaster104
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I believe I understand the problem that I'm running into and I will explain step-by-step what I'm doing.

First, I unzip the tar file in the home directory:
Code:
tar -zxf mysql-5.1.38.tar.gz
Next, I use ./configure using the following options:
Code:
./configure --prefix=/usr/local/mysql \ --localstatedir=/usr/local/mysql/data \ --with-mysqld-user=mysql \ --without-debug
Then, I get to using automake:

Code:
automake
After this step is where I get the error.

Code:
automake install
automake: no Automake input file found for `install'
automake: no input file found among supplied arguments
I've figured out what it's doing which is it's looking for the INSTALL file, but I'm confused as to why MySQL doesn't have this with it. Do I have to download it, is it made once I use ./configure, or what?

I'm trying to install eAthena and I'm following this guide: http://paradox924x.com/shazeya/Shazz...all-mysql.html

I understand that the mysql used here is old, but I doubt installation will be much different.

e: I've used apt-get to install mysql, but it conflicts with the tutorial I'm using. So... I'm not sure where to go from there.

Last edited by l33tmaster104; 09-09-2009 at 05:39 AM.
 
Old 09-12-2009, 01:04 PM   #7
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
To be honest if you use automake instead of make && make install like its said in the tutorial you cited then your breaking it and so I don't cope with your apt-get breaking the tutorial....
It also should not matter the way you install mysql what ever tutorial your using as long as it's working and you setup the right users for mysql.....

apt-get is a real commandline tool so try aptitude it's graphical based and might be more suiting.

I'd say you just stick to the tuts you cite or interpret the other tuts to the needed degree. mysql installed and working is mysql installed and working!
Maybe try the tutorial from mysql.com to get your installation going
http://dev.mysql.com/doc/refman/5.0/en/installing.html

Cheers Zhjim
 
Old 09-12-2009, 03:04 PM   #8
whk
Member
 
Registered: Jun 2005
Posts: 202

Rep: Reputation: 35
config mysql

I thought you really don't need to configure>make>make install after untar. I thought configure is just to relocate mysql to the usr file. Locate the mysql file and make a test. (BTW, if you haven't updatedb shame on you and bone up on Unix/Linux file system and commands) and look for mysql-5.1.38/bin/mysqld start and fire it up or mysqld_safe start &. Press enter after it starts to go back to the command prompt then ./mysql -u root. Or type mysql before pressing enter. If it works then you need to manually configure to your OS. So just skip configure>make>make install and go and do the group and chown stuff then fire it up. BTW, you can move mysql to the usr file your self.
apt-get does all of this auto like synaptic.
I hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
*** No targets specified and no makefile found ritam_bkp Linux - Software 16 09-27-2008 10:33 AM
Makefile: using targets to declare dependent vars blackcat_73 Linux - Software 0 11-21-2006 04:39 AM
makefile targets dand Programming 1 07-11-2005 04:28 PM
"no targets specified and no makefile found" liljhand Linux - Software 9 01-01-2005 01:54 PM
Installing Gaim - ...no makefile found... veritas001 Linux - Newbie 6 09-03-2003 01:31 AM

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

All times are GMT -5. The time now is 12:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration