Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It is not the make command that you want to look at rather the configure. A lot of the time there is a --prefix= you can use when running the ./configure command that tells where the program will be installed. To find the options you can use with the command use ./configure -h or --help though most times you are better off letting the program to install into its default location most likely in /usr/local/bin or similar. That way the program is in the path and is installed into the standard location for user installed programs.
It is not the make command that you want to look at rather the configure. A lot of the time there is a --prefix= you can use when running the ./configure command that tells where the program will be installed. To find the options you can use with the command use ./configure -h or --help though most times you are better off letting the program to install into its default location most likely in /usr/local/bin or similar. That way the program is in the path and is installed into the standard location for user installed programs.
Appreciate the info!
I do understand that sometimes letting it be is best.
But in cases like the simple game I'm not sure it's entirely mandatory to.
that's why I was curious if it was possible and the best way to do it.
Appreciate the info!
I do understand that sometimes letting it be is best.
But in cases like the simple game I'm not sure it's entirely mandatory to.
that's why I was curious if it was possible and the best way to do it.
Nothing is mandatory that is why options like that exists to allow you to do with your system what you want. For the most part though letting it default to a local user directory that is there for the purpose of installing software outside the packing system is the way to go. Less problems if needing to trouble shoot tracking down directories where things are not expected to be, possible paths hard coded into the build that will break, stuff like that...
installing things you compiled yourself, you have to keep in mind that your package management system won't know about them!
so there will be no updates, while the rest of the system will keep on updating (if you treat it right), which will evtl. lead to compatibility issues.
also, depending on the install location, there might be file conflicts.
now some applications don't need to be installed at all - you simply build them and run them from the build directory. might work, might not. if it works, i think it's abetter solution, because easier to keep an eye on where the files are.
True, however say you are beta testing a game.
which isn't in any repos so you compile the source as it's released on github.
personally I feel a simple accessible folder on my desktop would be easy to keep an eye on.
If you want to install from source, there are ways to make debian package and keep both yourself and package manager happy. Do yourself a favor and read this: http://forums.debian.net/viewtopic.php?p=228570
If that does not fulfill your needs, think of using virtual machine to test whatever you want to test, or chroot environment.
True, however say you are beta testing a game.
which isn't in any repos so you compile the source as it's released on github.
personally I feel a simple accessible folder on my desktop would be easy to keep an eye on.
don't get me wrong, i'm not saying one shouldn't do it.
but one needs to be aware of what's happening.
that last sentence tells me that you're not.
if you do a "sudo make install", the program will NOT be in an easily accessible folder on your desktop anymore.
also, there's quite a few stories where somebody installed something from source, forgot about it, and started to have weird issues later on... and that's only the stories of those who did remember in the end.
don't get me wrong, i'm not saying one shouldn't do it.
but one needs to be aware of what's happening.
that last sentence tells me that you're not.
if you do a "sudo make install", the program will NOT be in an easily accessible folder on your desktop anymore.
also, there's quite a few stories where somebody installed something from source, forgot about it, and started to have weird issues later on... and that's only the stories of those who did remember in the end.
Thats why I was trying to figure out how to cram it all into one folder.
I am aware of when running make install it auto installs to the pre defined place.
I guess overall I just need to find a way to learn about compiling.
Thats why I was trying to figure out how to cram it all into one folder.
I am aware of when running make install it auto installs to the pre defined place.
I guess overall I just need to find a way to learn about compiling.
Not much to learn a properly packaged source should just compile using the standard commands. Where you can run into problems is in the support libraries needed to get a compile done this is where apt-file comes in handy. Once installed and having run apt-file update as root then the normal user can use apt-file search file/missing.h to find the development package that contains the needed header file that needs to be installed to compile with success. Most times there is a README or INSTALL file in the extracted source top level directory containing useful information they should be read to find that and most importantly leave shit alone until you know what you are doing as if you break it you get to keep the pieces.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.