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. |
Not having looked at MySQL's website... I'm guesing: did you run ./configure before trying to run make?
|
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. |
Quote:
|
Quote:
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 |
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 Code:
./configure --prefix=/usr/local/mysql \ --localstatedir=/usr/local/mysql/data \ --with-mysqld-user=mysql \ --without-debug Code:
automake Code:
automake install 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. |
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 |
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. |