You are not logged in.

#1 2009-06-17 16:39:51

print
Member
Registered: 2007-02-27
Posts: 174

Help building MySQL from source on x86_64 ?

Hi,

I'm trying to build MySQL from source on x86_64 using --prefix=/home/myuser, and everything goes great until make install . . . then the following line of the makefile:

/bin/sh ../libtool --preserve-dup-deps --tag=CXX   --mode=link g++  -O3    -fno-implicit-templates -fno-exceptions -fno-rtti  -rdynamic  -o mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/libedit/libedit.a /home/myuser -lpthread ../libmysql/libmysqlclient.la  -lcrypt -lnsl -lm   -L/home/myuser/lib -lz

results in the following error:

/home/myuser: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[1]: *** [mysql] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/myuser/src/mysql-5.1.35/client'
make: *** [install] Error 2

I'm totally befuddled here, and still learning libtool, so any help/suggestions would be much appreciated.

I'm not using Arch.

Thanks in advance,
Noah

Last edited by print (2009-07-01 14:56:18)


% whereis whatis whence which whoami whois who

Offline

#2 2009-06-17 16:50:33

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Help building MySQL from source on x86_64 ?

Are you doing this within a PKGBUILD or directly from the source files? If it's the latter, I would strongly recommend that you switch to the former. Arch has a great build system and it should be preferred to cluttering your system with files that pacman can't track.

Even if you for some reason decide to go that route, you should take a look at the official mysql PKGBUILD and local source files to see how the version in the official repo is built. If you want to easily retrieve those files, you can use pbget.

If you can't build the official package using the aforementioned files, contact the maintainer.

*edit*
I somehow missed the part about installing to /home/$USER. I still recommend checking the official PKGBUILD. It might be as simple as changing the prefix there and then copying the files over from $pkgdir.

Last edited by Xyne (2009-06-17 16:52:39)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2009-06-17 16:54:08

print
Member
Registered: 2007-02-27
Posts: 174

Re: Help building MySQL from source on x86_64 ?

I'm doing it directly from source files.  I agree that pacman is the way to go, but I'm using another distro and that can't be avoided (work).


% whereis whatis whence which whoami whois who

Offline

#4 2009-06-17 17:09:09

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Help building MySQL from source on x86_64 ?

Did you take a look at the PKGBUILD build function to see if it includes something that you skipped?
Btw, you should probably edit your original post to state that you're not doing this on Arch Linux to allay any confusion.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2009-06-17 17:25:43

print
Member
Registered: 2007-02-27
Posts: 174

Re: Help building MySQL from source on x86_64 ?

I'm doing it directly from source files.

I'm _not on archlinux_.  I'm _not using pacman_.  I'm _not using PKGBUILD_.  I _am_ building from source (i.e., ./configure, make, make install).

I think the fact that I may not be using Archlinux is implied by the name of the forum:  "GNU/Linux discussion".

Last edited by print (2009-07-01 14:55:25)


% whereis whatis whence which whoami whois who

Offline

#6 2009-06-17 17:32:48

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Help building MySQL from source on x86_64 ?

I think he (Xyne) was suggesting looking at the PKGBUILD anyway -- to make sure a dependency isn't missing, etc., or that there is something being done in the PKGBUILD that may help you in some way. That being said, though, I've no idea.


Matt

"It is very difficult to educate the educated."

Offline

#7 2009-06-17 17:34:40

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Help building MySQL from source on x86_64 ?

Maybe try "--prefix=/home/myuser/" (note the trailing slash)

Offline

#8 2009-06-17 17:37:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Help building MySQL from source on x86_64 ?

*oops, hit the quote button instead of edit*

Last edited by Xyne (2009-06-17 17:39:24)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2009-06-17 17:38:50

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Help building MySQL from source on x86_64 ?

Sorry, I was only trying to help. Expecting everyone to read every post in a thread and read between the lines of those posts is not the best way to get help. It is fully possibly to build from source on Arch Linux and posting such a question on the Arch forum instead of the forum of the distro that you're using makes it reasonable to assume that you're on Arch.

Anyway, did you look at the PKGBUILD or not? The build function itself should be independent of Arch Linux.
Here's the direct link: http://repos.archlinux.org/viewvc.cgi/m … iew=markup

Post the full set of commands that you've run so far and which source files you're using (link) so others can try to reproduce the error as well.
*edit*

mrunion wrote:

I think he (Xyne) was suggesting looking at the PKGBUILD anyway -- to make sure a dependency isn't missing, etc., or that there is something being done in the PKGBUILD that may help you in some way.

exactly

Last edited by Xyne (2009-06-17 17:39:37)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2009-06-17 18:04:02

print
Member
Registered: 2007-02-27
Posts: 174

Re: Help building MySQL from source on x86_64 ?

Xyne, no apology necessary.  The reason I posted here for help is because this is the best, smartest user community.  I completely missed your question.  I will look at it!

Thanks,
Noah


% whereis whatis whence which whoami whois who

Offline

#11 2009-06-25 15:11:43

print
Member
Registered: 2007-02-27
Posts: 174

Re: Help building MySQL from source on x86_64 ?

Not a very informative error here, but installing ncurses-devel fixed it.

Last edited by print (2009-07-01 14:54:39)


% whereis whatis whence which whoami whois who

Offline

Board footer

Powered by FluxBB