Note to myself & other newbies resumé for getting package

General talk about packaging procedures and packages.
Post Reply
User avatar
luddite
Posts: 29
Joined: 22. May 2011, 14:44
Location: Ghana west africa , and U.K
Contact:

Note to myself & other newbies resumé for getting package

Post by luddite »

Summary of my understanding for getting packages to me & other newbies in none geek speak

On looking for a package first place to try is Gslapt package manager , from menu , system,
Gslapt Package Manager type name of package in search, and hit enter . if its there will show up, left click in square box, to install thats about it. As for as I understand Gslapt points to salix repo.

If the package isn't there e.g “apache tomcat” try sourcery , from menu, system, " sourcery slackbuild manager" (the funny RED HAT icon -thought that was another distro !) again put package name into text box and click magnifying icon. That should install package you want; you may get a glitch if for instance where sourcery is trying to get the package doesn't exit anymore or path to destination has been changed.

This is the current situation for apache tomcat

Another way to get a package is to go to http://www.slackbuild.org and download a compressed slackbuild file, and a source code file. For example on going to http://www.slackbuild.org the source code file for apache-tomcat is apache-tomcat-7.0.11.zip and the source code apache-tomcat.tar.gz

you need to uncompress the apache-tomcat.tar.gz ( an easy way by righ clicking mouse over file and choosing archive manager) on unpacking you get a folder called apache-tomcat. Put the file apache-tomcat-7.0.11.zip as it is into the unpacked apache-tomcat. Then from a terminal cd into apche-tomcat ,su in as root then # ./apache-tomcat.Slackbuild. This should build a package and you will find it somewhere in /tmp
(I found tomcat needs commons daemon, which needs apache-ant )

You can install the package created from a command line using #installpkg nameofpackage.txz

Another way to get a package is if you can get a directory with SLKBUILD, also containing source code, and support files. Here from a terminal cd into directory and run this command : $ fakeroot slkbuld -X


this creates a new package in the folder you just cd's into, which can be installed # installpkg packname.txz , or if you already have an older version of the package installed updated using #upgradepkg --reinstall --install-new package.txz ( see recent post by
djemos for clamav)
Last edited by luddite on 16. Jun 2011, 11:27, edited 3 times in total.
User avatar
dab1414
Posts: 30
Joined: 2. Jun 2011, 19:26

Re: Note to myself & other newbies resumé for getting pac

Post by dab1414 »

good morning,

First look here: http://www.salixos.org/wiki/index.php/Sourcery. If there is a broken link you should contact them. Also you can look in Sourcery > Edit > Preferences, under Sources tab and see where Sourcery is getting its sources from. And then you can look at View > SlackBuild Logs - and highlight the package ( in your case the apache - tomcat) click on View log, then you can see what went wrong. That should clear up your questions. As a note: I will try to submit this to slackbuilds.org ,, the current link points to http://www.apache.org/dist/tomcat/tomca ... 7.0.11.zip
Apache has updated their version number so now it should be http://www.apache.org/dist/tomcat/tomca ... 7.0.11.zip.
You can easily judge the character of a man by how he treats those who can do nothing for him.
-Unknown


My Linux screenshots:
User avatar
luddite
Posts: 29
Joined: 22. May 2011, 14:44
Location: Ghana west africa , and U.K
Contact:

Re: Note to myself & other newbies resumé for getting pac

Post by luddite »

cheers

I got an email from Heinz Weisinger thus:

Hi!

Apache Tomcat requires commons-daemon (as mentioned in the README). You can get it here: http://slackbuilds.org/repository/13.37 ... ns-daemon/

I know about the download URL issue already, just haven't come around to fixing it yet, but thanks anyway.

Grs,

Heinz
User avatar
luddite
Posts: 29
Joined: 22. May 2011, 14:44
Location: Ghana west africa , and U.K
Contact:

Re: Note to myself & other newbies resumé for getting pac

Post by luddite »

Ok I have got Tomcat working, using packages from slackbuild.org ;

Tomcat requires commons-daemon so I just downloaded from Slackbuild.org commons-daemon source and slackbuild & built it.
commons-daemon requires Apache-ant so did the same thing & built package for apache-ant using source and slackbuild package from slackbuild.org

I installed the jdk i think i used sourcery but may have been Gslapt gui; after that I installed apache-ant , then commons-daemon. After clicking in box for statup services Tomcat came up fine by going to http://localhost:8080/index.jsp in browser address box.

For other newbies-why bother with apache-tomcat,instead of some other web server ? well you can create java server pages, which are not that
different from html, and test them as if they were live on the web by putting them in /ROOT directory of tomcat.

Java is extremely powerful and even if you don't know much like me, you can do a small amount of editing
& achieve some neat effects for instance you can slice in custom tag library and easily have a dedicated chat page on your web site,or forum that is quicker than anything else.

Sourcery doesn’t seem to be working too well, in the view logs there is some text but loads of Hieroglyphs like small square boxes with, with four characters inside.
Post Reply