LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 01-15-2006, 03:35 PM   #1
fognight
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Rep: Reputation: 0
building source code, getting a little lost in it


Hello,

I am, obviously, a newbe with Linux and have to build the source code for a text-to-speech application (Flite). I am a member on a senior project team where the project is to assemble a handfull of applications together and then port them to a development board which is linux based so we are running the desktop with Linux to speak to the board.

Currently running Fedora

In the last step of this chain of apps we run a TTS (Flite-1.3 from CMU). Where I am getting lost is building the Flite source code into an executable program.

The documentation is pretty much limited to:
Quote:
tar zxvf flite-XXX.tar.gz
cd flite-XXX
./configure
make
So I extract the .tar.gz with ARK to a folder, open that folder and launch the terminal. In the Terminal I ran the "./configure" and then "make".

After "make" it came back with the command line and I did not see anything that explicitly looked like an error.

Now what do I do? After "make" I still need to complie right? Where should I look for the file(s) which I need to compile?

Thanks for any help
 
Old 01-15-2006, 03:40 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
Make compiles the files. To install the program on the system run this after running "make":

Code:
make install
 
Old 01-15-2006, 03:50 PM   #3
fognight
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
thanks saman, looks like I now have a permissions problem

came back with "cannot create directory" and "[install] Error 1" -- have to figure out how to get to the user account with that level permission
 
Old 01-15-2006, 03:55 PM   #4
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
You have to become root (administrator). To do this:
Code:
su -
This will ask for the root password. If you didn't set a root password when installing Linux, run following:
Code:
sudo bash
Then you can run
Code:
make install
 
Old 01-15-2006, 04:08 PM   #5
fognight
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
thank you again saman

now I've hit my head on the classic error, a file or directory is missing midway thru the install which stops it and returns "Error 2"

Is there a way to find out what these error messages mean?
 
Old 01-15-2006, 04:25 PM   #6
fognight
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I've noticed that this source code contains many folders and at least 4 of the subfolders contain makefiles. Would I need to go to each folder and run "make"?
 
Old 01-15-2006, 04:48 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Quote:
Originally Posted by fognight
thank you again saman

now I've hit my head on the classic error, a file or directory is missing midway thru the install which stops it and returns "Error 2"

Is there a way to find out what these error messages mean?
Error 2 is a make error, the error you're interested in will be from the compiler or the linker and will appear further up. Look for something starting "In file..." that isn't immediately followed by "Warning" (we're interested in errors not warnings).

If you want, post some output here, but put it between [code ] [/code ] tags (remove the space in those)
 
Old 01-15-2006, 05:37 PM   #8
fognight
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Komakino, and your signature is great.

I am running the whole process again with a new download copy in a clean folder. When I configure it runs through the "checking" and ends up with a bunch of "no" returns. Mainly from my lack of a sound card.

Watching the make I saw no errors occur. There was, however, a plethora of warnings.

With make install I get:
Code:
Installing
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
mkdir -p /usr/local/include/flite
/usr/bin/install -c -m 644 include/*h /usr/local/include/flite
make: *** lib: No such file or directory. Stop.
make: *** [install] Error 2
When I tared I used
Code:
 tar zxvf filename.tar.gz
I am within the folder it created when I try to run the make install
 
Old 01-16-2006, 06:45 AM   #9
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
You have to run the command is the following order:
Code:
./configure
make
make install
Did you run "./configure" anbd "make" after untarring the file?
 
Old 01-16-2006, 10:31 AM   #10
fognight
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Yes as I understand it

all done while root
Code:
 tar zxvf flite.tar.gz
cd flite
./ configure
make
make install
 
Old 01-16-2006, 10:39 AM   #11
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
There is not space between "./" and "configure", but I think that a typo

Othrwise, it looks correct. You might need to add some configure parameters, don't know. Look at "./configure -h".
 
Old 01-16-2006, 11:07 AM   #12
fognight
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Yup, that space was a typo.

I dove back into the flite readme file and found that it wanted GNU make. I have no clue whether this computer is running it or what the difference is in the make that is on here so I installed the one off the GUN ftp. GNU make installed without a problem. I am now retrying the install.

Thank you all for bearing with me and my newbe questions
 
Old 01-16-2006, 01:01 PM   #13
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
You already have make installed, otherwise you would not be able to run "make".
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I lost my C source code y2j_2062 Linux - Software 1 09-24-2005 08:28 AM
building a C code with Gdcahrt lib jagman Programming 0 03-11-2005 06:04 AM
Source-code error in Tripwire when building Ephracis Linux - Software 2 02-24-2005 12:02 PM
Problem in Building socket code from Stevens book Prakhardeep Linux - Networking 1 12-22-2004 04:46 PM
building from source Protex Slackware 2 02-24-2004 08:26 PM


All times are GMT -5. The time now is 03:58 PM.

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