LinuxQuestions.org
Register a domain and help support LQ
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
  Search this Thread
Old 10-06-2006, 02:04 AM   #1
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Rep: Reputation: 15
Those balls...


Hello!


I have always, ever since I started with Linux had a problem with .tar.bz files, I am never able to compile them.

Are there any easy guides out there that can show me step-by-step how to do it?

I got two, three DVD's with 12 GB of programs and such that I'd like to use, but I can't because I don't know how to compile the files...

Thank you in advance!
 
Old 10-06-2006, 02:40 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
Originally Posted by Score
I am never able to compile them
Can you then start off by explaining which steps you took, where it goes wrong, what error messages you get?

Typically, the installation of a program from source (.tar.gz, .tar.bz, ...) involves the following steps:
1. Un-tar & unzip using tar command
2. Go into source code directory
3. ./configure
4. make
5. make test #optionally
6. sudo or su to become root
7. make install #as root, unless you install the software in non-restricted directories (ie not in the standard
#installation directories)

If you want specific guides, per piece of software, then you'll need to search for the software's website. Searching with Google or on these forums (specially the Software forum) would be a good way to start...
 
Old 10-06-2006, 02:48 AM   #3
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 31
Also make sure you have the devel packages for Fedora. I really don't know what they are for sure so I'm not going to send you off on a wild-goose chase if I've got the wrong info. However, I'm fairly sure that since Fedora used yum repositories as a standard you might want to get the packages for them. Just google around for the packages you need to compile software. Good luck!
 
Old 10-06-2006, 02:52 AM   #4
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by timmeke
Can you then start off by explaining which steps you took, where it goes wrong, what error messages you get?
There is mostly one message that appears: no such file or directory. But I will try to compile a file and give you my outcome here. It might be easier to help me if you get my exact error messages.
 
Old 10-06-2006, 05:36 AM   #5
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
"No such file or directory" typically indicates that Linux can't find the command you're looking for.
For Linux to find your command, it must be in one of the directories in $PATH (try "echo $PATH" to see it's contents) or you must indicate where the file is located by giving the path.

Since you untar the archives anywhere you want, it's most likely that the "configure" tool is not in your $PATH. So, you should "cd" to the directory created by the un-tarring (where the script called "configure" is located in) and run "./configure" from there. You may need to add some options to "configure", depending on the software you want to install.

For instance, when you are "root" user, "./" is typically not in $PATH, so you need to type
./my_program to make "my_program", located in the current directory, run.

As already pointed out, many packages can be installed in binary form (ie from yum on Fedora), which eliminates
the problem of compiling from source. Maybe you can grab binary packages from the internet? They're usually free of charge.

"cd path/to/some/dir" changes the current directory.
 
  


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
installing tar balls g55rumpy Linux - Software 2 03-19-2006 02:24 PM
Tar Balls Sharkscott Linux - Newbie 11 01-11-2006 11:55 AM
Perl breaking my balls.... bulliver Programming 10 01-17-2005 03:14 PM
AcidRip is breaking my balls! Need help!! Hammett Linux - Software 1 10-31-2003 01:01 PM
can you use rsync on tar balls wedgeworth Linux - Hardware 1 09-24-2003 03:14 PM


All times are GMT -5. The time now is 06:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration