LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem installing MySQL 5.1.38: No targets specified and no makefile found. (https://www.linuxquestions.org/questions/linux-newbie-8/problem-installing-mysql-5-1-38-no-targets-specified-and-no-makefile-found-753488/)

l33tmaster104 09-08-2009 03:12 AM

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!

penguiniator 09-08-2009 03:28 AM

Not having looked at MySQL's website... I'm guesing: did you run ./configure before trying to run make?

zhjim 09-08-2009 03:38 AM

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.

l33tmaster104 09-08-2009 12:19 PM

Quote:

Originally Posted by zhjim (Post 3673997)
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.

jstephens84 09-08-2009 01:34 PM

Quote:

Originally Posted by l33tmaster104 (Post 3674574)
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

l33tmaster104 09-09-2009 12:58 AM

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.

zhjim 09-12-2009 12:04 PM

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

whk 09-12-2009 02:04 PM

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.


All times are GMT -5. The time now is 07:53 PM.