LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2014, 08:15 AM   #1
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Installing a package without SalckBuilds is beyond me.


I need either Ibus or SCIM. Without one of them, my system is almost useless. Although Slackware comes with SCIM, I have not been able to get it to work and according to other threads on LQ, maintenance ceased on SCIM a few years ago. That is fine, since I prefer Ibus. However I cannot install it from SlackBuilds, because the source code is on googl.code.com, which is blocked where I live. At the moment, using a proxy is not feasible, because when I need proxies I use free ones, and the government has recently become very diligent at blocking websites that have anything to do with proxies.

In another thread I was given a link to slackonly.com. I now have access to source packages, but that is the easy part. I have read the package installation section of the Slackbook a few times, but cannot figure out how to install these packages. They are .slack.txz tar balls. I am completely out of my element here. I understand the procedure for SlackBuilds:
download Slackbuild
tar xvf
download source package
./<package>.SlackBuild
installpkg

But this single compressed file that is not a .tar.gz, confuses the process immensely for me.
De-compress or not?
If yes, in what directory should it be de-compressed?
Is there an equivalent process to ./...SlackBuild?
Is more than the Slackware package necessary? PGP signature file, MD5 signature file, the slack.meta file?

My brain is not computer-oriented. Learning even basic concepts is difficult. So any hints would be greatly appreciated, because if I cannot get Ibus installed, I might be forced to go back to Debian and the approaching systemd menace.

Another possible option is installing from Salix's repository, but I have a feeling that would be even more difficult.

Signed,
Slackware wanna be.
 
Old 08-26-2014, 08:32 AM   #2
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
*.txz file can be installed on slackware throught installpkg or pkgtool

typical slacbuilds is another story - there is in typical two files for download, both archives - a slackbuild one, and a source of package.
download both. then uncompress slackbuild one in special folder ( i do it throught mc - midnight comander - from console. it works with archive files too.
say, decompress slackbuilds archive to /Install/MPlayer
then copy your "sources file" _> copy mplayer.zip to /Install/MPlayer
then run slackbuilds file ( executable one) in /Install/MPlayer folder - there starts to get configuring and compiling messages. if all be done ok, you found your compiled package in /tmp folder - say /tmp/MPlayer.txz

compilation must be done from root privileges, as i understand.
 
Old 08-26-2014, 08:33 AM   #3
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 365

Rep: Reputation: 203Reputation: 203Reputation: 203
It looks like slackonly.com contains Slackware packages built using SlackBuilds from SBo. That is a result of all the steps up till and including
Code:
./<package>.SlackBuild
in your post. What's left is to run
Code:
installpkg <package>.txz
as root and you're done.

There was a thread not that long ago with details on how to recognize a Slackware package from its name:
Quote:
A Slackware package is typically named program-name-version-architecture-buildtag and ends with either a tgz or a txz extension (in theory it could also end .tlz or .tbz but that is unlikely).
 
Old 08-26-2014, 08:47 AM   #4
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,617

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
As to md5, it's mostly to prove that the stuff you're downloading is legit, that is nobody has done something to it once it was uploaded. Here's a thread on how to check it: http://www.linuxquestions.org/questi...-check-383392/
 
Old 08-26-2014, 09:28 AM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,352

Rep: Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751Reputation: 3751
There is a nifty utility created by gnashley, a long-time LQ member, called src2pkg. This utility takes source files and creates Slackware packages that you can install using #installpkg nameofpackage. This may help you.

http://distro.ibiblio.org/amigolinux/download/src2pkg/
 
Old 08-26-2014, 12:14 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
If it is indeed a Slackware package that is already compiled (which seems to be the case since it ends in .txz), you can open the file using a file explorer that can open archives (I use Krusader) or you can extract the archive and check the contents. It will contain the folder structure and all the files in their correct folders of what will be copied to the root of the filesystem. This will typically include the /usr directory, and depending on the utility, could also include /etc (some may include /opt and others can include other various root folders).
 
Old 08-26-2014, 12:28 PM   #7
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Just install it with installpkg, like Audrius said. src2pkg isn't relevant for packages that are already built. There is no reason to open up that package and inspect its contents. installpkg is what you want.
 
Old 08-26-2014, 12:54 PM   #8
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Dugan has a good explanation on this:
http://duganchen.ca/writings/slackware/setup/
 
1 members found this post helpful.
Old 08-26-2014, 01:14 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,278
Blog Entries: 24

Rep: Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225Reputation: 4225
For your immediate needs using the package from slackonly.com...

If unsure which file to download, get this one.

To verify the download was good, get the md5 sig file here then with both files in the same directory:

Code:
md5sum -c bibus-1.5.2-noarch-1_slack.txz.md5
bibus-1.5.2-noarch-1_slack.txz: OK
At this point you have the package and you know it is good, so to install it (as root)

Code:
installpkg bibus-1.5.2-noarch-1_slack.txz
You are done!

(Well probably - I see that wxPython is a dependency, so you may still need to install it and its dependencies... see the "dep" file for each package's dependencies on that site. The full list for bibus is: wxPython, libgnomeprintui, libgnomeprint, libgnomecups - all found in libraries/... For each of those, if not already on your machine, get the .txz file and run installpkg package-name.txz on it - if you need a little more help to sort it out, just ask!).

For general reference, there are two main cases you will encounter when adding Slackware packages:

1. You have the SlackBuild script and must first build the package from source
2. You have the pre-built package and must install it

In the first case you simply need to put the SlackBuild script and usually a *.slack-desc, *.info (and possibly a few others) into the same directory with the source code archive, make it executable (chmod +x *.SlackBuild) and run it. A finished package will be placed into /tmp... See the info at Slackbuilds.org for complete notes.

In the second case, or after building package from SlackBuild, simply install with installpkg package-name.txz as we did with bibus above.

In general a Slackware package will have a .txz file extension, whereas source code will be more likely to be tar.gz, tar.bz2 or something else. This is a convention, not a rule so always verify if unsure.

Last edited by astrogeek; 08-26-2014 at 01:57 PM.
 
Old 08-26-2014, 02:33 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If src2pkg ever can't be used or gotten at any time, the standard:

./configure --prefix=/usr && make && make install && make clean

...still works.
 
Old 08-26-2014, 06:13 PM   #11
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711

Original Poster
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Thanks everyone. I was hoping it would be something simple like using installpkg, but the presence of so many files was confusing. Perhaps I was just expecting something more difficult?

The dependency, pyxdg is installed from SlackBuilds, and ibus and ibus-pinyin installed from slackonly. I just need to root around a little to fix an error generated when running ibus-setup:
Code:
(process:2886): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/share/ibus/setup/main.py", line 463, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python2.7/locale.py", line 547, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
After I poke around a bit, hopefully I can figure out why Ibus does not like my locale settings. (using GB.UTF-8) But that is something to look at after I have a morning coffee.
 
Old 08-27-2014, 12:49 AM   #12
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 365

Rep: Reputation: 203Reputation: 203Reputation: 203
What is the output of
Code:
locale
command? Maybe your locale settings are incorrect. At least the name of locale you have given in your last post is wrong (it should be en_GB.UTF-8).

I'm using lt_LT.UTF-8 locale, and trying
Code:
python -c 'import locale; print locale.setlocale(locale.LC_ALL, "")'
(the source of your error message) works without trouble.
 
Old 08-27-2014, 02:18 AM   #13
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by ReaperX7 View Post
If src2pkg ever can't be used or gotten at any time, the standard:

./configure --prefix=/usr && make && make install && make clean

...still works.
... sometimes.
 
Old 08-27-2014, 02:34 AM   #14
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711

Original Poster
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
GB-UTF-8 was me using short-hand for en_GB-UTF-8.
After reading the error message I found this in the man pages:
Code:
setlocale(LC_ALL, "");        # Required for the next statement
                              # to take effect
Quote:
Originally Posted by audriusk View Post
What is the output of
Code:
locale
Code:
bash-4.2$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB-UTF-8
LC_CTYPE="en_GB-UTF-8"
LC_NUMERIC="en_GB-UTF-8"
LC_TIME="en_GB-UTF-8"
LC_COLLATE=C
LC_MONETARY="en_GB-UTF-8"
LC_MESSAGES="en_GB-UTF-8"
LC_PAPER="en_GB-UTF-8"
LC_NAME="en_GB-UTF-8"
LC_ADDRESS="en_GB-UTF-8"
LC_TELEPHONE="en_GB-UTF-8"
LC_MEASUREMENT="en_GB-UTF-8"
LC_IDENTIFICATION="en_GB-UTF-8"
LC_ALL=
I believe I know what to do. Edit LC_ALL=. Probably add my locale to the end.
 
Old 08-27-2014, 02:39 AM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by psionl0 View Post
... sometimes.
Yes, sometimes, but there are times you have to consult ./configure --help for build options, as well as resolve a missing dependency during the configure run.

However learning to manually install without a SlackBuild is good knowledge to have.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing a package built via src2pkg: package description do not appear s09 Slackware 13 03-07-2014 02:39 PM
File conflict with the old installed rpm package while installing new package sr164w Linux - Newbie 3 12-15-2011 11:43 AM
why not detect package after installing package????? venil Linux - General 2 06-09-2006 05:29 PM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration