LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-01-2003, 11:32 AM   #1
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Rep: Reputation: 31
Passing commands to the compiler with ./cofigure


I'm having a little trouble installing MySQL on my PS2. "./configure" won't work, "./configure -build=mipsel-redhat-linux" works a little better, but it still doesn't work. I think what I need to do is pass a few params to the compiler. "./configure --help" says you can do this with the environment variable "CPPFLAGS".

I added "env CPPFLAGS='-build=mipsel-redhat-linux'" to the ./configure shell script, but that didn't work. I looked through the man/help pages of the g++ and gcc, and I can't find where it talks about -build. I thought I had seen it in there somewhere before.

Why can't it figure out the build type, and how can I tell the compiler what the build type is?

Thanks.
 
Old 10-08-2003, 07:03 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
You need to post the error you are getting.
 
Old 10-08-2003, 08:02 PM   #3
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
"./configure" (which takes maybe one second) says:

configure: error: cannot guess build type; you must specify one

"./configure --build=mipsel-redhat-linux" (which takes about five minutes) says:

configure: error: cannot guess build type; you must specify one
configure: error: could not configure INNODB

"./configure --build=mipsel-redhat-linux" (with env CPPFLAGS=--build=mipsel-redhat-linux) takes as long and says the same thing.
 
Old 10-08-2003, 08:19 PM   #4
pesho_p
Member
 
Registered: Oct 2002
Location: 42 42' N, 23 19' E
Distribution: Slackware 8.1
Posts: 77

Rep: Reputation: 15
How about: ./configure --host=mips_something (replace with your exact architecture name and try again). Does it make any difference?
 
Old 10-08-2003, 09:36 PM   #5
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
I tried "./configure --build=mipsel-redhat-linux --host=mipsel-redhat-linux --target=mipsel-redhat-linux" and env CPPFLAGS='--build=mipsel-redhat-linux --host=mipsel-redhat-linux --target=mipsel-redhat-linux", but I got the same error message.

I noticed that it says it can't find mipsel-redhat-linux-g++ and a few other things with "mipsel-redhat-linux" in front of them. I don't think this matters since it keeps crunching along, but I thought I might mention it.
 
Old 10-16-2003, 09:01 AM   #6
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
At last! I got it to install!

Apperently there's a seperate instillation of "INNODB" and INNODB didn't know the build type. I just edited the MySQL ./configure file so the INNODB ./configure would run with all of the flags, and I edited the INNODB ./configure so it would have the CPPFLAGS.
 
  


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
Java: passing linux shell commands borgy_t Programming 3 04-19-2005 03:50 AM
Passing commands via ssh Comatose51 Linux - Security 1 04-13-2005 04:31 PM
shell scripting -- passing commands mehesque Linux - General 4 06-25-2004 10:28 AM
Passing multiple commands to SU adamrad Linux - General 2 03-26-2004 10:53 AM
passing terminal commands joey Linux - General 3 03-21-2002 11:24 AM


All times are GMT -5. The time now is 11:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration