LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-12-2006, 02:28 AM   #1
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Rep: Reputation: 15
Where is a really good tutorial for compiling programs from source?


I don't know how to do it and it's one of the most important Linux things as far as usability goes. PLEASE PLEASE PLEASE help and make sure it's EASY lol. I googled but found no all encompassing tutorial for Fedora and figured you guys knew better.
 
Old 06-12-2006, 03:52 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally Posted by jesuscakes
I don't know how to do it and it's one of the most important Linux things as far as usability goes. PLEASE PLEASE PLEASE help and make sure it's EASY lol. I googled but found no all encompassing tutorial for Fedora and figured you guys knew better.
The best answer to your question is, there is no answer ^^. Seriously though, most of the programs distributed as source should come with a FAQ telling you how to build it. If it does not, then most likely it is not worthy installing, IMHO.

Some peoples will tell you that the "standard" way to compile programs is by using the commands "./configure, make and make install". I disagree. While it will build most of the programs that way, sometimes you need to add additional flags to the compiler, for example: Building Apache with mysql support or mplayer with GUI support.

Check this link:

http://www.linuxquestions.org/questi...ad.php?t=45094

it's a sticky telling how to install programs in Linux. My last advice is: You will almost never gain any speed performance when compiling programs from source. Except maybe for mplayer, all other programs run at the same speed in my experience. Your Fedora distribution has a great tool for installing binaries (YUM) and you should really stick with it. This "compiling everything" mentality is very strong in the Linux community and I don't know exactly why ^^.

Good luck!
 
Old 06-12-2006, 02:10 PM   #3
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mega Man X
The best answer to your question is, there is no answer ^^. Seriously though, most of the programs distributed as source should come with a FAQ telling you how to build it. If it does not, then most likely it is not worthy installing, IMHO.

Some peoples will tell you that the "standard" way to compile programs is by using the commands "./configure, make and make install". I disagree. While it will build most of the programs that way, sometimes you need to add additional flags to the compiler, for example: Building Apache with mysql support or mplayer with GUI support.

Check this link:

http://www.linuxquestions.org/questi...ad.php?t=45094

it's a sticky telling how to install programs in Linux. My last advice is: You will almost never gain any speed performance when compiling programs from source. Except maybe for mplayer, all other programs run at the same speed in my experience. Your Fedora distribution has a great tool for installing binaries (YUM) and you should really stick with it. This "compiling everything" mentality is very strong in the Linux community and I don't know exactly why ^^.

Good luck!
This particular program has no RPM and it's necessary that I install it. When I try to do the make install and stuff like it says nothing happens and it says no file can be found or w/e.
 
Old 06-12-2006, 02:24 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
It would be easier if you told us the program and posted up the output/error messages you get when you try to compile.

Normally you do:
Code:
./configure
make
su (to become root)
make install
When you untar the package, look for an INSTALL or README file, it will often tell you the best way to install the source package.
 
Old 06-14-2006, 03:59 PM   #5
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
I am trying to install this:

ftp://ftp.penguin.cz/pub/users/mhi/vxfs/

The most recent vxtools.

Any help = greatly appreciated.
 
Old 06-14-2006, 04:11 PM   #6
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
Okay I cd to the directory I installed in and do ./configure and get this error:

"creating cache ./config.cache
Package: vxtools-0.4
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH"

Then if I try and continue anyway using make I get this:

"make: *** No targets specified and no makefile found. Stop."

Please help.
 
Old 06-14-2006, 04:32 PM   #7
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
Okay I found out it's cuz I had no C compiler and now it working on the ./configure front but make and make install gives me another problem:

[root@xx-xx-xxx-xx vxtools-0.4]# make
gcc -M -I. *.c > .depend
gcc -g -O2 -I. -c -o vxls.o vxls.c
gcc -g -O2 -I. -c -o super.o super.c
gcc -g -O2 -I. -c -o olt.o olt.c
olt.c: In function ‘vx_readolt’:
olt.c:65: warning: cast from pointer to integer of different size
olt.c:65: error: invalid lvalue in assignment
make: *** [olt.o] Error 1
[root@xx-xx-xxx-xx vxtools-0.4]# make install
gcc -g -O2 -I. -c -o olt.o olt.c
olt.c: In function ‘vx_readolt’:
olt.c:65: warning: cast from pointer to integer of different size
olt.c:65: error: invalid lvalue in assignment
make: *** [olt.o] Error 1
 
Old 06-16-2006, 11:53 PM   #8
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
Bump.

Please help.
 
  


Reply



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
DISCUSSION: Compiling Programs from Source jeremy LinuxAnswers Discussion 52 03-02-2024 12:26 PM
compiling programs from source Frank Leone Linux - Newbie 3 10-30-2005 01:47 AM
Compiling Programs from Source-help orisma Linux - Newbie 6 03-03-2005 07:57 AM
Compiling programs from source rpms coolfrog Linux - General 1 09-10-2004 03:17 PM
Simple Tutorial for compiling source code? SoliTear Linux - Newbie 17 03-15-2004 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration