hawihoney

New unMENU package: Perl

Recommended Posts

[EDITED] Changed text in bold.

 

I just created a conf file to install Perl on a plain unRAID 4.4 system. All you need to do is store the code shown below as a file called perl-unmenu-package.conf on your USB stick into the packages subdirectory. This directory should exist after successful installation of unMENU and all it's additional files.

 

After that please open unMENU and click on the "Package Manager". You will find a new package called "perl (Practical Extraction and Report Language)". From here you can download, install, ... this package.

 

I've tested it successfully with unRAID 4.4 at my best. Please use at your own risk.

 

The package will be forgotten during next reboot but unMENU allows to enable this package to be re-enabled during next re-boot.

 

If you need additional perl modules this kind of installation won't help here because the files are not stored persistent. you need to add an additional line for each module in your conf file. I've added an example in the conf shown below. Be aware that these modules will be fetched from CPANs web site over and over again during each re-boot. However, if your server is running for months (like mine) this won't apply. There is a minimal risk that a module mix with package-based modules and CPAN-based modules may fail. But testing your scripts should show those errors easily.

 

I'm currently working to get PHP and mySQL installed that way. PHP (and the dependant libxml2 package) is ready but I'm not satisfied so far. I want to store the php.ini and my.cnf in a save place (disk or stick) and link them back to the running system. I need some help from the community and unMENU producer here.

 

Thanks for your feedback.

Harald

 

 

P.S.: I can't upload a file to this board. The ZIP file or the conf file itself is only 686 Bytes in size and the error "to big" is reported during Save. Sorry for that.

 

PACKAGE_NAME perl (Practical Extraction and Report Language)
PACKAGE_DESCR Larry Wall's "Practical Extraction and Report Language".  Perl is a
PACKAGE_DESCR language optimized for scanning arbitrary text files, extracting
PACKAGE_DESCR information from those text files, and printing reports based on that
PACKAGE_DESCR information.  It's also a good language for many system management
PACKAGE_DESCR tasks.  The language is intended to be practical (easy to use,
PACKAGE_DESCR efficient, complete) rather than beautiful (tiny, elegant, minimal).
PACKAGE_URL http://slackware.cs.utah.edu/pub/slackware/slackware-current/slackware/d/perl-5.10.0-i486-1.tgz
PACKAGE_FILE perl-5.10.0-i486-1.tgz
PACKAGE_MD5 86506399bc1a0ead65f9b294e14910a3
PACKAGE_INSTALLED /usr/bin/perl
PACKAGE_DEPENDENCIES make (for the installtion of additional perl modules)
PACKAGE_INSTALLATION installpkg perl-5.10.0-i486-1.tgz
PACKAGE_INSTALLATION PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install MP3::Tag'
PACKAGE_VERSION_TEST perl --version 2>&1 | grep 'This is perl' | awk '{print $4}'
PACKAGE_VERSION_STRING v5.10.0
PACKAGE_MEMORY_USAGE n/a

 

 

 

Share this post


Link to post
Share on other sites

I think this script (et al) needs an update; the packages have moved from .tgz to .txz format at slackware.cs.utah.edu.

 

Share this post


Link to post
Share on other sites

I think this script (et al) needs an update; the packages have moved from .tgz to .txz format at slackware.cs.utah.edu.

 

You are trying to use packages from -current on a stable release of Slackware (12.2), which is not a good idea and in this particular case won't work. The default Slackware package format (or more accurately, the compression used on the package) has changed in -current, and is not compatible with the old pkgtools. (-current is the development version of Slackware... and not stable, and constantly changing)

 

You will need to use the stable release, with the packages named .tgz.   You might try using some other site other than cs.utah.edu if they do no host the older versions... (odds are they still do) Or, you can try converting from the one package type to the other... but basically, the package-manager plug-in does not need an update since we do not have the new package tools to know how to deal with them.   The links to old versions of packages available for download might need to be updated, but not to files named ending in .txz, but to the 12.2 Slackware versions... ending in .tgz

 

If you are adventurous, you can always see of you can install the new package tools... But I'll probably wait till the version of unRAID is updated first.

 

When the new versions of the package tools are available, and the new "xz" compressor exists in the unRAID distribution, all that will be needed is an update .conf file, since the package names, and the install commands are all in it.  I doubt the package manager plug-in will need updating at all.

 

Joe L.

Share this post


Link to post
Share on other sites

I think this script (et al) needs an update; the packages have moved from .tgz to .txz format at slackware.cs.utah.edu.

 

You are trying to use packages from -current on a stable release of Slackware (12.2), which is not a good idea and in this particular case won't work. The default Slackware package format (or more accurately, the compression used on the package) has changed in -current, and is not compatible with the old pkgtools.

 

You will need to use the stable release, with the packages named .tgz.   You might try using some other site other than cs.utah.edu if thay do no host the older versions... (odds are they still do) Or, you can try converting from the one package type to the other... but basically, the package-manager plug-in does not need an update since we do not have the new package tools to know how to deal with them.   The links to old versions of packages available for download might need to be updated, but not to files named ending in .txz, but to the 12.2 Slackware versions... ending in .tgz

 

If you are adventurous, you can always see of you can install the new package tools... But I'll probably wait till the version of unRAID is updated first.

 

Joe L.

 

Thanks as always Joe.  I did find a .tgz version at http://ftp.iasi.roedu.net/mirrors/ftp.slackware.com/slackware/slackware/d/ with matching checksum, but, of course, I can't edit the original post.  ;)

 

 

Share this post


Link to post
Share on other sites

You can also download the xz package then the latest pkgtoolls

 

 

xz

http://packages.slackware.it/package.php?q=current/xz-4.999.8beta-i486-1

 

pkgtools.

http://packages.slackware.it/package.php?q=current/pkgtools-13.0-noarch-1

 

 

Another choice is to download the xz package.

Uncompress the file then recompress it with gzip and name it as .tgz

 

 

Further reading

http://linux.com/community/blogs/Slackware-Package-Format-Changed.html

 

new package format topic is forked in a new thread.

http://lime-technology.com/forum/index.php?topic=3915.msg34525#msg34525

 

Share this post


Link to post
Share on other sites

Are there any updates in this area since a lot of the links in this thread are dead.  I've currently got Perl v.5.1.0 installed and want to update to a later version, but am having no luck what so ever finding the correct tgz package.

 

Any help is much appreciated.

 

Matt.

Share this post


Link to post
Share on other sites

Are there any updates in this area since a lot of the links in this thread are dead.  I've currently got Perl v.5.1.0 installed and want to update to a later version, but am having no luck what so ever finding the correct tgz package.

 

Any help is much appreciated.

 

Matt.

As of this post, the newest perl version seems to be 5.10.0.  It can be found on both the 12.2 and 13.0 release of Slackware.

 

If this helps, attached is an updated unMENU package file.  It is meant to be used with the new package manager version in unmenu 1.3  The links in it are valid.

 

Find the new unMENU 1.3 here at google.code : http://code.google.com/p/unraid-unmenu/

 

Download the unmenu_install zip file. Unzip and move unmenu_install to the /boot/unmenu directory.

 

Then type

cd /boot/unmenu

followed by (if a new installation)

unmenu_install -i -d /boot/unmenu

or, If you already have an older unmenu version installed type

unmenu_install -u

 

Once running you can view the unMENU pages in your web-browser by browsing to

//tower:8080

 

If you had a prior version of unMENU running, you'll need to restart it to see the new version. This will typically do it:

killall awk

/boot/unmenu/uu

 

The updated perl-unmenu-package.conf package file is attached.  Put it in the /boot/packages folder on your unRAID server and then click on the Package-Manager page in unMENU.   You should be able to download perl and install it from there.   Note: the package also installs "make" if it is not already installed on your server.   Installing the package will also install one of the MP3 libraries are described earlier in this thread from the CPAN server.

 

Let me know if it works for you. If it does, I'll add the perl-unmenu-package.conf file into the next release_list of unMENU.

 

Joe L.

perl-unmenu-package.conf

Share this post


Link to post
Share on other sites

Thanks for the insight Joe.  I did a "perl --version" and it seems I'm running 5.10.0 ???  I'm sure it was 5.01.0... anyways I will look in to upgrading unMenu to the 1.3 version and re-installing perl from there.

 

Cheers.

Share this post


Link to post
Share on other sites

Thanks for the insight Joe.  I did a "perl --version" and it seems I'm running 5.10.0 ???  I'm sure it was 5.01.0... anyways I will look in to upgrading unMenu to the 1.3 version and re-installing perl from there.

 

Cheers.

Looks like have the latest version of perl...  The only advantage of installing it through unmenu is the ability to have it automatically re-installed when you reboot.

Share this post


Link to post
Share on other sites

Joe, thanks much!

Let me know if it works...  If it does, I'll add it to the set of files on google.code

 

Joe L.

Share this post


Link to post
Share on other sites

Joe, thanks much!

Let me know if it works...  If it does, I'll add it to the set of files on google.code

 

Joe, works like a charm!

Share this post


Link to post
Share on other sites

PERL - about updating this package.

 

whats currently installed via unmenu:

08-Sep-2008 01:14 16M -

http://slackware.cs.utah.edu/pub/slackware/slackware-12.2/slackware/d/perl-5.10.0-i486-1.tgz

 

looking at whats newer, the next upgrade would be:

02-Oct-2009 13:31  13M -

http://slackware.cs.utah.edu/pub/slackware/slackware-13.1/slackware/d/perl-5.10.1-i486-1.txz

 

which is 3 megs smaller.. but notice its in txz not tgz format. I've not seen txz before, so looking it up:

*NOTE: Slackware packages typically end with file extensions .tgz and .txz(txz starting version 13) for installation with installpkg tool.

 

*NOTE: The only difference with the tgz from the txz, is the compression used, the tgz is just a typically tarball compressed with gz while the

txz is a tarball that uses LZMA compression, which greatly compresses the file size of the txz compared to the tgz.

 

so now brings up another question, so does unraid tar support txz? or is this one of the main reasons most of the packages are a bit out of date (I understand the whole concept of why upgrade if its working.. but to save 3megs on each startup for this package I would think would be enticing for most -- at the expense of a few extra cpu cycles to extract a slightly advanced compression format)

 

then, if txz is supported.. why not just jump to the latest stable (the current trunk only does x64 it appears, perl-5.16.3-x86_64-1.txz),

20-Aug-2012 12:44 13M -

http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/d/perl-5.16.1-i486-1.txz

 

so looking at perl 5.10.0 vs 5.16.1,

there have been a bit of changes and it might be more trouble than its worth to really validate nothing will break..

but in case someone knows perl and wanted to glance.. here are the changelog migration for the major releases,

5.16.0 -> 5.16.1 - http://perldoc.perl.org/perl5161delta.html

5.14.0 -> 5.16.0 - http://perldoc.perl.org/perl5160delta.html

5.12.0 -> 5.14.0 - http://perldoc.perl.org/perl5140delta.html

5.10.0 -> 5.12.0 - http://perldoc.perl.org/perl5120delta.html

 

Share this post


Link to post
Share on other sites

The current version of unRAID will support either a .tgz or a .txz compressed package. 

Here is your chance... create a new "perl-13.1" package .conf file.    Once you get it to work, share it for those who follow.  You've done the hard part. (finding an installable archive)

 

As far as why it has not been upgraded... probably because whoever created it originally has had no need for the newer features or fixes.

 

Joe L.

Share this post


Link to post
Share on other sites

you can use either, however, the "current" version will constantly be updated on the archive, and therefore the MD5 checksum will at some point be different when it is updated, and the .conf file will stop working.

 

If you use the slackware-14.0 version, it is likely to be available for a much longer time since the perl-5.16.1-i486-1.txz file under it would not ever change.  It will be available until the entire slackware-14.0 version hierarchy is removed when it gets to be the oldest version they host.

 

Your choice.  Either will work. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2017 Lime Technology, Inc. unRAID® is a registered trademark of Lime Technology, Inc.