LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SDL libraries needed for PERL / already there (https://www.linuxquestions.org/questions/slackware-14/sdl-libraries-needed-for-perl-already-there-431611/)

Trio3b 04-04-2006 10:09 AM

SDL libraries needed for PERL / already there
 
New to Slack 10.1. Trying to install frozen bubble. Downloaded from linux package into home folder. As root used "installpkg". Message is
SDL libraries needed for PERL.
Looked in Kpakage manager and SDL and PERL are both installed according to list in left pane.

There is a reference in another thread but its for FC and thread fizzles. Also ggogling just takes me to sdl.net
Any help out there?
Thanks

reddazz 04-04-2006 10:14 AM

I think you need to install a package called perl-sdl.

Trio3b 04-04-2006 10:12 PM

sdl-perl
 
frozen bubble site does not have up to date sdl-perl package. Where can I find this package? Apparently new sdl-perl version is incompatible with frozen bubble.

Also downloaded two other necessary files that are in .tar.gz format. How do I convert to .tgz so as to use "installpkg"? (error msg is "files do not end in .tgz)

Would like to understand this first before attempt to install OpenOffice2.x.x

Thanks.

Alien_Hominid 04-04-2006 11:55 PM

Firstly, you need to patch the frozen-bubble with patch from their site to work with new sdl.
You can't install archives ending in tar.gz (they are source archives, not packages).
Install checkinstall from Slackware /extra directory. This lets you create Slackware packages.
Run:
$ tar -xvzf filename.tar.gz
This will extract archive.
Open directory:
$ cd filename
Compile package:
$ ./configure
$ make
Become root to make installation:
$ su
Enter root password when asked.
Install package with checkinstall:
$ checkinstall
$ installpkg filename.tgz
Get back to your user:
$ su username

Trio3b 04-05-2006 01:34 AM

Everything seems to have gone well with dwnload and install of checkinstall and the untarring of the .tar.gz files. Checkinstall asked for the type of package to be formed ....[s] for slack. Here are last few lines after running checkinstall and then installpkg:

Done. The new package has been saved to

/home/****/SDL_mixer-1.2.6/SDL_mixer-1.2.6-i386-1.tgz
You can install it in your system anytime using:

installpkg SDL_mixer-1.2.6-i386-1.tgz

**********************************************************************

root@****3:/home/****/SDL_mixer-1.2.6# installpkg SDL_mixer-1.2.6-i386.tgz
Cannot install SDL_mixer-1.2.6-i386.tgz: package does not end in .tgz
root@****3:/home/****/SDL_mixer-1.2.6#

What has gone wrong ?

Also for some reason all files whether directories,executables or files are in black when root in terminal. Is this normal in Slack?
Thanks

Alien_Hominid 04-05-2006 08:17 AM

No. Directories should be blue, executables - green.

reddazz 04-05-2006 08:23 AM

I have just looked at the forzen-bubble website and the perl-sdl package that works with frozen-bubble is available from their site.

Trio3b 04-05-2006 10:57 AM

sdl-perl
 
Well, for some reason I was able to install the SDL_image and SDL_mixer files. Downloaded the sdl-perlx.x.tar.gz Untarred, and cd to the folder but cannot ./config as I did the other files.
error is
root@****3:/home/****# tar -xvzf SDL_Perl-2.1.3.tar.gz
SDL_Perl-2.1.3/

etc,etc


SDL_Perl-2.1.3/TODO
SDL_Perl-2.1.3/typemap
root@****3:/home/****# cd SDL_Perl-2.1.3
root@****3:/home/****/SDL_Perl-2.1.3# ./configure
bash: ./configure: No such file or directory

Fairly sure this is what I did for the other files. Also downloaded the sdl_patch but I assume I need to install sdl_perl first.
BTW - as root in console All files are black. As user they are normal colors.

stumbling thru this but must be missing something simple,
Any ideas
Thanks

Alien_Hominid 04-05-2006 11:07 AM

Maybe there is autogen.sh or smth similar?

reddazz 04-05-2006 12:22 PM

Run "ls" to list to contents of the sdl-perl directory and post the output.

Trio3b 04-05-2006 01:17 PM

This is what I dwnlded ->SDL_Perl-2.1.3.tar.gz

root@****3:~/SDL_Perl-2.1.3$ ls
BUGS CHANGELOG MANIFEST README lib/ make/ t/ typemap
Build.PL COPYING META.yml TODO logo/ src/ test/

this is the readme for this file:
README for SDL_Perl-2.1.2

What's New in 2.1.2:

SDL_Perl-2.1.2 is a bug patch release that fixed a number of memory
leaks in blitting code, handles glGet queries, and some Build fixes.
For full details check the CHANGELOG file.

Prerequisites:

SDL Perl recommends installing the following libraries available
from http://www.libsdl.org/ prior to installing:

SDL-1.2.6
smpeg-0.4.4
SDL_image-1.2.2
SDL_gfx-2.0.3
SDL_mixer-1.2.5
SDL_net-1.2.4
SDL_ttf-2.0.5

Additionally the following Perl modules should be installed:

Module-Build-0.22
Test-Simple-0.47

Installation:

perl Build.PL
./Build
./Build test
./Build install

The build process will use the new Module::Build facility
to autodetect and build SDL Perl for your platform. If
the build fails please forward bugs to sdl-devel@perl.org.

Now officially confused. Why is this readme for 2.1.2 included in the 2.1.3 file? I must have dwnlded the wrong sdl-perl file....no?
thanks for any help

reddazz 04-05-2006 01:52 PM

Try running "make". If that doesn't work, take a look at the README file.

Alien_Hominid 04-05-2006 02:47 PM

So run in console perl Build.PL and everything else what was said.


All times are GMT -5. The time now is 12:12 PM.