2 questions about installing SDL

Hi ,

I’m trying to install SDL on my home directory (since I don’t have write
permission on root in the school machine). I changed “prefix” in Makefile to my
home directory, and “make” was run successfully. But then I got this error in
"make install":
mkdir -p – . /usr/local/lib
/usr/bin/install -c -m 644 libSDLmain.a /usr/local/lib/libSDLmain.a
/usr/bin/install: cannot create regular file `/usr/local/lib/libSDLmain.a’:
Permission denied

How do I get around with this?

As you can tell, I’m very new to linux. How do I compile the sample programs in
"test" subdirectory in SDL’s source pack?

Thanks!!

Will

As you can tell, I’m very new to linux. How do I compile the sample
programs in “test” subdirectory in SDL’s source pack?

cd test
./configure
make

should work… (under OSX I got a problem with /usr/local/bin/sdl-config
not being found because /usr/local/bin isn’t in the default path… but
apart from that, it worked.)On 19/01/2005, Will Childman, you wrote:


Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.

Hi there.

1-

The problem in this case is:
As a user, you do not have write access to
/usr/local/lib. As you use --prefix=~/ (you home dir),
there is an option for libs also (wich I do not
remeber now). I will give a look as soon as I get home
and send it to you.
I never had used SDL this way (I use linux at home,
but as I have root access, I install the usual way).

Just a silly question… have you ever checked if
SDL is not already installed? In Linux, SDL is almost
default for every distro (linux distribution) I know,
even Slackware (wich I use at home).

2- try “make” (on the dir of the sample you want to
compile).

Best regards,

J Inacio Ferrarini
Salvador - Bahia - Brazil
J2EE / J2SE Programmer
Extreme Tecnologia

— Will Childman escreveu:> Hi ,

I’m trying to install SDL on my home directory
(since I don’t have write
permission on root in the school machine). I changed
"prefix" in Makefile to my
home directory, and “make” was run successfully. But
then I got this error in
"make install":
mkdir -p – . /usr/local/lib
/usr/bin/install -c -m 644 libSDLmain.a
/usr/local/lib/libSDLmain.a
/usr/bin/install: cannot create regular file
`/usr/local/lib/libSDLmain.a’:
Permission denied

How do I get around with this?

As you can tell, I’m very new to linux. How do I
compile the sample programs in
"test" subdirectory in SDL’s source pack?

Thanks!!

Will


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Converse com seus amigos em tempo real com o Yahoo! Messenger

answer for the 1st question:
Try john the ripper, then you’ll have root permissions :wink:
Just kidding Im sorry but Im very new too and so i dont know :frowning:
answer for the 2nd question:
change into the test directory:
cd test (if you are already in you SDL directory)
then type ./configure && make && make install
that takes a while
Hope I could help

with friendly greetings
Mike–
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl

Hi,

I changed “prefix” in Makefile to my
home directory, and “make” was run successfully.

Hm, how did you do this? There should be a “configure” file. Try
"./configure --help", then try “./configure --prefix=$HOME/SDL” or
wherever you want to install it (Sorry, I don’t have the source code at
hand, but that’s the usual way).

This should change your Makefiles etc., so that "make; make install"
should work ok.

Oh, when compiling things with your version of SDL, be sure to have
$HOME/SDL/bin (or whatever you picked) in your PATH variable (bash:
export PATH=$HOME/SDL/bin:$PATH , tcsh: setenv PATH $HOME/SDL/bin:$PATH
), otherwise the wrong sdl-config, if any, will be used.

And when running those, add $HOME/SDL/lib (or wherever the libraries
are) to your LD_LIBRARY_PATH variable as above, or else ld (the dynamic
linker) won’t find your freshly installed libraries.

Hope this helps (and is correct!),

Benjamin