How do programs install?
When I install a program on linux, how/where does it install?
Should I be installing in specific directory? Does it know where it should install? Is everything installed in it's own directory? I tried to install a program and when I went to run the installed "./install.sh" it said it could not find specific folders. Do I need to move the files to a specific area or do I need to change the install.sh file so the relative locations of the directories it's trying to find are available? Is stuff like this distro specific or do all of them work basically the same way? |
Quote:
As a rule, most install's need to run as root, since otherwise, you don't have permissions to make directories, or copy files into existing system directories. If you're installing from a package (.deb, .rpm, etc.), the package installer takes care of all that for you, and puts things where they're supposed to go. Installing from source? Then the configure/install/make program is written to put things where the author thinks they should go, but SOMETIMES you can overwrite it. Really, it depends on the package. |
If you're running Slackware64 (as it says in your profile), and if it's a Slackware package, you install it as root by running in the terminal:
Code:
installpkg packagename |
It is helpful, in cases like this, if you post the name of the program your trying to install, as well as the exact install command you tried and its exact error response. Otherwise, our responses are just guesses based on general principles.
|
Hi,
Welcome to LQ! Quote:
Most applications do have a 'install.sh', 'uninstall.sh' and hopefully a big 'README' to read. The handling of the install is via the shell script; 'install.sh'. Quote:
Quote:
:hattip: The above links are from the 'Slackware Builds, Packages & Scripts' section of 'Slackware-Links'. More than just SlackwareŽ links! Just a few more links to aid you; SlackwareŽ Essentials SlackwareŽ Basics Linux Documentation Project Rute Tutorial & Exposition Linux Command Guide Utimate Linux Newbie Guide LinuxSelfHelp Getting Started with Linux Advanced Bash-Scripting Guide Virtualiation- Top 10 These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links! |
Where they do install is up to your distribution/you/the author of the program, as already mentioned. Where they should be installed is explained in the Linux Filesystem Hierarchy (FHS for short).
Most likely, the executable should end in /usr/bin. |
Also, its generally a good idea to use the built-in pkg mgr and not try to manually install from the cmd line if you can help it. Nearly everything you'll need should be available from your distro's SW repositories.
One major advantage is it'll automatically take care of dependencies. |
Quote:
Quote:
Quote:
I'm using Slackware 13.0, 64 bit version. It's not as cut and dry as using the 32 bit version. The 32 bit version I tried was much easier to find packages and proper installations...but I wanted to stick with the 64 bit version. This led me to my questions about installing software. |
Quote:
I have been able to update the packages that are already installed via slackpkg, very easy. |
Quote:
I downloaded Filezilla from it's own website, extracted it and when I tried to install it said it couldn't find specific directories to install it. As described above, it was mentioned that I have to logged in as root to install any software...sounds like I'll be spending alot of time as root. |
Quote:
Quote:
Directories/Folders, Permissions...I know those fairly well. What directories contain what and where things go, I do not. I am using Slackware 13, 64 bit edition. Quote:
Quote:
Quote:
I appreciate the references, they will come in handy! |
Quote:
|
Quote:
|
If you want to skip the package manager, install in /usr/local/bin. FHS
|
Quote:
|
All times are GMT -5. The time now is 07:29 PM. |