Newbie SDL problems

I have just installed SDL 1.04 I think so that I can run Maelstrom (I
used to use a Mac in hte good ol’ days). On trying to configure I get
the following message

The sdl-config script installed by SDL could not be found
If SDL was installed in PREFIX make sure PREFIX/bin is in your path, or
set the SDL_CONFIG environment variable to the full path to sdl-conig

I’m new at this so I’m afraid this means little to me. I have foud
sdl-config in /usr/local/bin/ and have tried running it and it gives me
usage directions but they are beyond me to.

Any suggestions please. I am using RH 6.0 or at least trying hard.

Try:

export PATH=$PATH:/usr/local/bin
rm config.cache
./configure

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Could not run the SDL test program
The test program compiled but did not run. This usually means that the run
time linker is nmot finding SDL or finding the wrong version of SDL, you’ll
need to set your LD_LIBRARY_PATH variable or edit /etc/ld.so.conf to the
installed location.

Edit /etc/ld.so.conf and add the line:
/usr/local/lib

Then as root, run /sbin/ldconfig

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

I have just installed SDL 1.04 I think so that I can run Maelstrom (I
used to use a Mac in hte good ol’ days). On trying to configure I get
the following message

The sdl-config script installed by SDL could not be found
If SDL was installed in PREFIX make sure PREFIX/bin is in your path, or
set the SDL_CONFIG environment variable to the full path to sdl-conig

I’m new at this so I’m afraid this means little to me. I have foud
sdl-config in /usr/local/bin/ and have tried running it and it gives me
usage directions but they are beyond me to.

Any suggestions please. I am using RH 6.0 or at least trying hard.

Frank

Sam Lantinga wrote:

Try:

export PATH=$PATH:/usr/local/bin
rm config.cache
./configure

This seemed to work and it can now find sdl-config. Unfortuntely I now het
some new error messages:

Could not run the SDL test program
The test program compiled but did not run. This usually means that the run
time linker is nmot finding SDL or finding the wrong version of SDL, you’ll
need to set your LD_LIBRARY_PATH variable or edit /etc/ld.so.conf to the
installed location.

There is more after this about old versions which I don’t think I have. I
have tried editing /etc/ld.so.conf but I’m not sure what installed path I
am trying to add.
Any help would be gratefully rcieved as I am quite oviously floundering in
the dark

Frank

Edit /etc/ld.so.conf and add the line:
/usr/local/lib

Then as root, run /sbin/ldconfig

    -Sam Lantinga                           (slouken at devolution.com)

Thank you it iis now working and I am happily shooting rocks.
I presume that

export PATH=$PATH/usr/local/bin

changes my path. I have to do this everytime I want to run Maelstrom. Can I
change it permannetly?
Also could you tell me what /sbin/ldconfig does?

Thanks again

Frank

Frank Johnson schrieb am 11 Feb 2000:

Edit /etc/ld.so.conf and add the line:
/usr/local/lib

Then as root, run /sbin/ldconfig

    -Sam Lantinga                           (slouken at devolution.com)

Thank you it iis now working and I am happily shooting rocks.
I presume that

export PATH=$PATH/usr/local/bin

changes my path. I have to do this everytime I want to run Maelstrom. Can I
change it permannetly?

Add the line to your .bashrc or .profile.

Also could you tell me what /sbin/ldconfig does?

ldconfig looks for all the shared libraries in your system and tells the
linker about it. Why don’t you read the manpage?

Honestly, these questions are very easy to answer yourself and are
vastly offtopic on this list. I recommend you get a good book about
unix / linux. I recommend ‘Linux’ from Michael Kofler. I don’t know about
the english translation, but the german version (original) is excellent.

Thank you it is now working and I am happily shooting rocks.
I presume that

export PATH=$PATH/usr/local/bin

Doesn’t that lack a ‘:’ after the $PATH ? :slight_smile:

changes my path. I have to do this everytime I want to run Maelstrom. Can I
change it permannetly?

Yes. Add the path in “/etc/profile”, or in your shell-dependant
user-config-file, in your home-directory. For the bash-shell, which you
seem to use, it’s “.bashrc”. For csh/tcsh it would be “.cshrc”.

Also could you tell me what /sbin/ldconfig does?

“man ldconfig” can tell you this. Basically it checks what dynamic-libraries
are around and remembers it (permanently) for later use.

All the best,
robOn Fri, Feb 11, 2000 at 10:31:08PM -0500, Frank Johnson wrote:

Thank you it is now working and I am happily shooting rocks.
I presume that

export PATH=$PATH/usr/local/bin

Doesn’t that lack a ‘:’ after the $PATH ? :slight_smile:

changes my path. I have to do this everytime I want to run Maelstrom.
Can I

change it permannetly?

Yes. Add the path in “/etc/profile”, or in your shell-dependant
user-config-file, in your home-directory. For the bash-shell, which you
seem to use, it’s “.bashrc”. For csh/tcsh it would be “.cshrc”.

Also could you tell me what /sbin/ldconfig does?

“man ldconfig” can tell you this. Basically it checks what
dynamic-libraries
are around and remembers it (permanently) for later use.

All the best,
rob

Thanks for all the help. I promise I will go back to my linux newsgroup to
ask all my feeble linux questions.
Frank

Honestly, these questions are very easy to answer yourself and are
vastly offtopic on this list. I recommend you get a good book about
unix / linux. I recommend ‘Linux’ from Michael Kofler. I don’t know about
the english translation, but the german version (original) is excellent.

Thank you for the help, but I would like to say that as I have been using
MacOS and Windows for the last 10 years and linux for only about 1 month it
is not initially that easy to find out anything for yourself.
I promise that I will go back to a linux news group and only bother you with
SDL problems in hte future.
Thanks, Frank