Can I install SDL in linux without being root? I’ve compiled it fine,
but of course, can’t move the libraries to the system’s library paths.
Can it be installed to a libs path in my home directory?
su
make install
exitOn Thursday 02 October 2003 07:09 am, Murray Evans wrote:
Can I install SDL in linux without being root? I’ve compiled it fine,
but of course, can’t move the libraries to the system’s library paths.
Can it be installed to a libs path in my home directory?
Run ./configure --help
Look for the prefix options. It should be something like ./configure
–prefix=/home/foo/SDL --exec-prefix=/home/foo/SDL
All configure files usually have these options.
When you run ‘make install’, SDL should be installed to /home/foo/SDL.
You might only need the prefix /home/foo; SDL might install to
/home/foo/SDL/SDL instead of /home/foo/SDL. I’m not sure.
You’ll need to add the bin path in /home/foo/SDL to your PATH
environmental variable so you can run sdl-config without the full path
being required.
~ Philip D.S. Thoren
Murray Evans wrote:>Can I install SDL in linux without being root? I’ve compiled it fine,
but of course, can’t move the libraries to the system’s library paths.
Can it be installed to a libs path in my home directory?
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdlE3-I: This message has been scanned for viruses and dangerous content by UML’s antivirus scanning services.
yeah,
during configure stage do this
./configure --prefix=/home/mylogin/
during the ‘make install’ phase there will be some new directories made for
you.
then in your .bash_profile add the following
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/mylogin/lib
export LD_LIBRARY_PATHOn Thursday 02 October 2003 7:09 am, Murray Evans wrote:
Can I install SDL in linux without being root? I’ve compiled it fine,
but of course, can’t move the libraries to the system’s library paths.
Can it be installed to a libs path in my home directory?
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety. "
–Benjamin Franklin
Sure, you can call your SDL programs with an environment variable:
$ LD_LIBRARY_PATH=/path/to/sdl/lib program-name
or you can export it; put it in your .profile, etc.
I used this idea just two days ago for testing my own build of freetype. I was seeing if there was an issue in the slackware 9.1 provided freetype causing a segfault when I freed an SDL_ttf produced surface of a certain font. Strangely enough, there looks like there’s a problem in freetype =) I’ve used LD_LIBRARY_PATH in many different ways; it’s a very useful setting.
JesseOn Thu, Oct 02, 2003 at 03:09:11PM +0100, Murray Evans wrote:
Can I install SDL in linux without being root? I’ve compiled it fine,
but of course, can’t move the libraries to the system’s library paths.
Can it be installed to a libs path in my home directory?
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl