LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Those balls... (https://www.linuxquestions.org/questions/linux-newbie-8/those-balls-489894/)

Score 10-06-2006 01:04 AM

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!

timmeke 10-06-2006 01:40 AM

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...

zetabill 10-06-2006 01:48 AM

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!

Score 10-06-2006 01:52 AM

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.

timmeke 10-06-2006 04:36 AM

"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.


All times are GMT -5. The time now is 08:55 PM.