LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2003, 05:20 PM   #1
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Rep: Reputation: 30
Compiling/installing from Source: 2 minor ?'s


I read up on compiling and installing software from sourcecode and think I've got the hang of it, but for one problem.
I downloaded Maelstrom (a game my husband likes) and it came with the message:

To build and install the game, get the Simple DirectMedia Layer
library from http://www.devolution.com/~slouken/SDL/ and install
it. Then run:
./configure; make; make install

So I did, as root, using checkinstall. It installed into my /home/tigerflag directory, which I didn't want.
When I compiled and installed Maelstrom, it also installed into my /home/tigerflag directory. Couldn't run it from there, and I don't want it there. I want it available for all the testosterone-types in my house that have their own accounts in this system. I tried to remove it, but don't know how to uninstall it. Just deleting all the files isn't right, is it?

I tried downloading the maelstrom tarball into /temp instead of my /home dir, and it installed there. It doesn't belong there.

1. How do I get programs to install in their proper places, if I don't know what those places are? (I didn't see any instructions for that in the Maelstrom files.)

2. How do I uninstall progs that were compiled from source?

TIA,
Siri Amrit
 
Old 10-12-2003, 06:11 PM   #2
pesho_p
Member
 
Registered: Oct 2002
Location: 42° 42' N, 23° 19' E
Distribution: Slackware 8.1
Posts: 77

Rep: Reputation: 15
1. ./configure --prefix=/usr (&& make && checkinstall -S).
2a. In case it is installed with make install: make uninstall.
2b: In case checkinstall is being used (i.e. 'checkinstall -S' instead of 'make install'): removepkg foo-package-1.0.0-i386.tgz.

Precompiled SDL library is installed on your system alredy in case of full install. If not, it's located in slaclware/l directory of your CD-ROM and can be installed with: installpkg sdl-1.2.6-i486-1.tgz:
Quote:
PACKAGE NAME: sdl-1.2.6-i486-1.tgz
PACKAGE LOCATION: ./slackware/l
PACKAGE SIZE (compressed): 688 K
PACKAGE SIZE (uncompressed): 2570 K
PACKAGE DESCRIPTION:
sdl: sdl (Simple DirectMedia Layer library)
sdl:
sdl: This is the Simple DirectMedia Layer, a generic API that provides low
sdl: level access to audio, keyboard, mouse, joystick, 3D hardware via
sdl: OpenGL, and 2D framebuffer across multiple platforms.
sdl:
sdl: This library links against libaudiofile (L series), libartsc (KDE
sdl: series), libesd (GNOME series), and the X11 libraries. Make sure all
sdl: of these are installed if you're planning to use SDL (a full
sdl: installation will cover all of the prerequisites).
sdl:
Other precompiled SDL (image, perl, sound) packages for Slackware 9.1: http://www.linuxpackages.net/search_...=9.1&name=SDL.
 
Old 10-12-2003, 07:43 PM   #3
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Original Poster
Rep: Reputation: 30
Thank you very much. I know this is dumb, but could you please give me a sample of

./configure --prefix=/usr (&& make && checkinstall -S)

with an actual package name in it? For instance,' maelstrom -3.0.6.tar.gz ' ? I know I'm gonna screw up, otherwise.

Thanks,
Siri Amrit
 
Old 10-12-2003, 08:38 PM   #4
pesho_p
Member
 
Registered: Oct 2002
Location: 42° 42' N, 23° 19' E
Distribution: Slackware 8.1
Posts: 77

Rep: Reputation: 15
1. cd /tmp (or /usr/src in that manner)
2. wget -c http://www.devolution.com/~slouken/M...m-3.0.6.tar.gz
3. tar zxvf Maelstrom-3.0.6.tar.gz
4. cd Maelstrom-3.0.6
5. vi README
6. vi INSTALL
7. ./configure --prefix=/usr --sysconfdir=/etc
8. make
9. su -
10. make install OR checkinstall –S

Don't forget that SDL_net is required. The game may or may not work without it. If step 7 fails with warnings about missing SDL_net, then you can repeat all steps listed above, but with 'http://www.libsdl.org/projects/SDL_n...t-1.2.5.tar.gz' instead of 'http://www.devolution.com/~slouken/M...m-3.0.6.tar.gz'.

If this doesn't work then you can try:

1. cd /tmp
2. wget -c http://www.devolution.com/~slouken/M...0.6-1.i386.rpm
3. rpm2tgz Maelstrom-3.0.6-1.i386.rpm
4. installpkg Maelstrom-3.0.6-1.i386.tgz

If this also fail then at least you'll be able to removepkg-it (removepkg Maelstrom-3.0.6-1.i386.tgz) and your system will be "clean".

P.S. In case SDL_net doesn't work: same procedure as above (steps 1-4) but with 'http://www.libsdl.org/projects/SDL_n...2.5-1.i386.rpm' instead of 'http://www.devolution.com/~slouken/M...0.6-1.i386.rpm'.

Hope that helps somehow.

EDIT: In case SDL_net is needed and you install it from source do not forget to run 'ldconfig' (or 'ldconfig -v' for verbose output).

Last edited by pesho_p; 10-12-2003 at 11:54 PM.
 
Old 10-13-2003, 09:19 AM   #5
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Original Poster
Rep: Reputation: 30
Thank you so much!

Siri Amrit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pointers needed about installing/compiling from source PenguinE Linux - Newbie 5 01-02-2005 01:19 PM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM
Compiling and,installing from source: What next? arubin Linux - Newbie 4 05-22-2004 06:35 PM
Installing javacheck - minor problem? gervin Linux - Newbie 8 01-04-2004 11:39 PM
installing, compiling from source illtbagu Linux - Newbie 10 01-04-2003 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration