SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I'm attempting to get gPhoto (and the associated library) installed. In the process, I believe I mistakenly installed an older gPhoto version with a newer library. Needless to say, it's not working as it once was. I cannot seem to reinstall.
Is there a way to unistall all gphoto and libgphoto stuff somewhat cleanly?
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
Another way is to compile it again and then use checkinstall to create a package out of it and to install the program (again). After that you can use the Slackware pkgtools to uninstall it.
2) instead of "make install" type "checkinstall" -- this should build and install the package. If it does not install the created package automatically, do it yourself with "installpkg <name of the package>"
3) type "removepkg <name of the package>" and then install your newer version again.
The chances are good, btw, that with reinstalling the working package the libraries you mentioned will get overwritten with the working stuff. Maybe try that first.
Perfect, and yes I did have to install from source. I used the "make uninstall" command for both gphoto2 and the library. I followed that up with an updatedb and "slocate *gphoto2*" and slocate "slocate *libphoto*". The uninstallation script worked perfect...no traces of these two programs.
I think freshly installed the proper library and program again and everything works perfect
Is there a good HOWTO or something about program installation in general? I'd like to understand a bit more about where program components go. I don't like just assuming installers put everything where it's supposed to go.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
The most applications allow to give something like "make install DESTDIR=/path/some/where". Some differ slightly and don't support this or use another syntax like "make PREFIX=/path/some/where". If you use this, you can check which files will be installed with a regular "make install". The appropriate one should be stated in the README or INSTALL file that comes with the source code.
Checkinstall is another way -- just do the "checkinstall" instead of "make install" and check the contents by unpacking it somewhere with "explodepkg".
A third way would of course be to check the Makefile, but I think that is tricky if you are not used to do this (nor am I).
I'll deffinatly install checkinstall. Looks useful. And I too shall pass on reviewing the makefiles.
However, I'm still a bit curious as to where programs (generally) go when you define the installation location. For example, lets say I'm installing KWhatever (a KDE application) from source. In configure, I pass the --prefix /usr/local. I then make and install.
I assume the program has a lot of stuff. For example:
1) Help files (man, documentation, etc)
2) Library files
3) Executables
4) Links to the application in the "start menu".
5) Other stuff ???
In Microsoft world, you can pretty much count on applications installing the same way. Example:
1) Help files go to c:\program files\app
2) Library files go to c:\windows or the app directory
3) Exe's c:\program files\app
4) Links c:\documents and settings\all users\start menu
Is there general locations (a standard if you will) of where program components go when installed from source?
http://www.slackersbible.org/book/ and the Slackware Linux Essentials II(Slackware Linux) by Alan Hicks and others(available in documents section at linuxpackages site as on-line version) both have good package management sections too. Good luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.