Question:
Linux installing files?
2006-08-07 17:58:25 UTC
when i type "make uninstall" and "make" and then "make install", errors occur, how do you install files in Linux???
Three answers:
draciron
2006-08-08 07:14:01 UTC
Depends on what distro you are running. If you are running a redhat based distro, if you configure your yum repositories you don't have to mess with tarballs too often. There are equivalent package managers for most distros.



Again with redhat based distros like Fedora, Mandriva, SUSE, etc you just need an RPM file to avoid having to mess with a tarball. I'd do a search on the package name and see if an rpm is out there. To use the RPM just download it and from the dir the rpm is in do

rpm -Uhv [rpmname]



There are GUIs that you can get from freshmeat.net which will make all of this a point and click exercise.



Now down to tarballs. Those are a last resort install for most Linux users. If you have to use a tarball because there is no rpm.



tar -xzvf name of tarball

tar -xzvf abcde.tar.gz

cd to the newly created dir

do an ls in the dir. Most will have a file called configure. If it does not read the included readme file. There is likely a binary install file you have to use. Flash for example will have you download a tarball to execute a binary install file.



./configure

make

make install



The make clean just restores the config file to how it was orgionally. You have to do ./configure again before using make typically.
Tim
2006-08-07 18:07:02 UTC
Your linux program has been released to you in pure raw source code. You need to compile it to an executable program to use it. Most programs released this way coem with a make shell script that runs the compiliation itself.



But you need to already have the right compiler program (like gcc, java, python, etc.), and you need all dependant libraries...which you often don't already have.



Read any documentation files that came with the program, check the root dir where the make shell is. There should be installation instructions and a list of needed libraries.
2006-08-07 18:04:16 UTC
If you aren't running RPM you'll need to compile the files.



# ./configure

# make

# make install



Also ensure you are logged in as root.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...