Users online right now: 68 - Login  » search  » forum index  

Compiling software?

Reignorch
wrote 4 years ago


reply
There are a few apps that the modules don't include (such as X-chat and Pidgin) that I'd like to install. I'm a linux newbie and I don't know how to compile yet so any advice would be appreciated.

Thanks
 
Gabries
wrote 4 years ago


reply
Hmm... In a normal Linux system one would get the source files, extract them, and in the console screen inside the source directory one would do the usual "./configure && make && make install". Slax is not your usual distribution...

I'm assuming you have basic shell knowledge (like how to use the console, use cd to move around in the console, and that you can use 'sudo' in your console).

The easiest way to make your own programs is to make your own unofficial modules. If you can get your hands on Slackware pkgtools (installpkg, updatepkg, pkgtool, etc) then your best bet would be to go to http://www.slackbuilds.org/repository/12.0/ and search for your package there. Download the SlackBuild file and extract it. In the new folder, download the source tar.gz or tar.bz2 file (links in the same page as the SlackBuild). In the console, chdir to the directory of the SlackBuild, then run "sudo ./app-name.SlackBuild", where app-name is the name of the application being installed. When the system finishes, you will have a Slackware package in your /tmp/ folder. Then do (in the console) "sudo tgz2lzm /tmp/app-name*.tgz app-name.lzm". This will make a module of your package. Now move/copy it to your Slax module folder (slax/modules, I believe). Next time Slax starts the program will be "installed".

Please write back with more questions if you have any and write back if this works.

Also, out to anyone else, is there a better way of making modules? Like a simple method for new-comers?
 
tonio
wrote 4 years ago


reply
For a newbie,

My guess the easiest way to make modules is to visit:
http://packages.slackware.it/

Do a search on the programs and download them, then at the prompt do a tgz2lzm

root@slax:~# tgz2lzm package-name.tgz package-name.lzm

The resultant lzm file can be activated by using activate command.

For the two programs in question:
http://packages.slackware.it/search.php?v=current&t=1&q=X-chat

http://packages.slackware.it/search.php?v=current&t=1&q=pidgin

You can also look for them under unofficial repositories or check each author's page for these modules. Whichever makes it easier.

There are other ways of course and other sources for the packages. Whichever works for the new users thats what they should use. :)

Sent some spam to bit bucket :)

Hsbc Malaysia Credit Card Online Services > /dev/null
 
Gabries
wrote 4 years ago


reply
Listen to tonio,
I forgot there are already-made packages out there... Oops.
 
tonio
wrote 4 years ago


reply
Thanks Gabries for your kind words :)

Also there is a way thanks to another slax user

He posted a page with authors of several modules, you click on the author's profile and the contributed modules. You can also search for the modules that you need directly from the slax modules website:
Got it from the thread:

http://www.slax.org/forum.php?action=view&parentID=11897

http://www.webalice.it/side_b/authors.html

Hope this helps :)
 
smoorthi
wrote 4 years ago


reply
i would like to compile the following SWs which are not part of packages, so what is the process to get them created?

should i follow the usual process of "./configure --prefix=/tmp/abc && make && make install". and create the module from this installed dir /tmp/abc?

i am trying to create Slax Live CD with some of the EDA tools such as SystemC , Icarus Verilog simulator and GtkWave etc.
 
markds
wrote 4 years ago


reply
Do NOT use "--prefix=/tmp/abc", this will make all your pointers for the installation look into /tmp/abc. You want the default installation to be in /usr/ or /usr/local/ which is where most installs go. If not what will happen is your system won't pick up the libraries and your binary will fail. The proper way to do it is to :

mkdir -p /tmp/abc
./configure; make; make install DESTDIR=/tmp/abc
cd /tmp/abc; dir2lzm . /tmp/xyz.lzm

That will build the app with the correct path and directories so the system can pick it up and will dump all the files in the correct structure to /tmp/abc. You then use /tmp/abc to do dir2lzm and create the module in /tmp.

All this is actually covered several times in the rest of the forum, please do a search.
 
Thor
wrote 4 years ago


reply
markds wrote:

cd /tmp/abc; dir2lzm . /tmp/xyz.lzm
That will build the app with the correct path and directories so the system can pick it up and will dump all the


You should do a roundabout here so that other users can easily install/uninstall it cleanly from even a real-install

cd /tmp/abc && makepkg packagename-packageversion-march-minorversion.tgz -linkadd y -chown n && tgz2lzm makepkg packagename-packageversion-march-minorversion.tgz makepkg packagename-packageversion-march-minorversion.lzm

That will leave an installscript and a description file also listing all installed files.


Did anyone mention the easiest way
Use: "checkinstall" after configuring the extracted source.


All modules I build, are build twoways. That is, they fit as good into a real install as a live Slax. That is how everyone should do it, if they want to make a flexible module. Just to bad that is not included in the offically-module-criteria, but a nice looking icon on the page, is more important. Cant have too blurry icons there :p (waving my finger)
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH