LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 04-13-2013, 03:19 PM   #1
alkahest
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Rep: Reputation: Disabled
PKG CONFIG PATH Adjustment


Hello Everybody,

I am attempting to install a Google Chrome Slackbuild on Slackware 14.

I tried to install a Chrome RPM from the official website to no avail, so now I am attempting the Slackbuild route.

It has been brought to my attention that Google Chrome has runtime dependencies on ORBit and GConf. So I am trying to install builds for those two.

I have successfully unpacked and installed ORBit2, using 'tar xzvf' and 'sudo ORBit2.SlackBuild'.

I attempted the same steps for GConf. But when I ran 'sudo GConf.SlackBuild', I got the error 'No package ORBit-2.0' found'.

Now, the problem is that I installed 'ORBit2', not 'ORBit-2.0'. My guess is that this naming discrepancy is the reason that I can't install GConf.

So how do I change the names so that GConf will install?

Konsole says I should "consider adjusting the PKG_CONFIG_PATH environmental variable if you installed software in a non-standard prefix". It also suggests that I can "set the environmental variables DEPENDENT_CFLAGS and DEPENDENT_LIBS" to avoid the need to call pkg-config.

But I am not sure how to do these things, or what they mean.

Again, how can I change ORBit2 to ORBit-2.0 so that I can install GConf?
 
Old 04-13-2013, 03:31 PM   #2
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 427

Rep: Reputation: 106Reputation: 106
GConf is part of Slackware. Where did you get the google-chrome Slackbuild from?

If you want to install google chrome, you can find a SlackBuild, instructions and dependencies in /extra:
http://ftp.belnet.be/ftp.slackware.c...google-chrome/

Read the README there!
Also, read the HOWTO section at SBo in case you are not familiar with using SLackBuilds:
http://slackbuilds.org/howto/

Last edited by solarfields; 04-13-2013 at 03:34 PM.
 
Old 04-13-2013, 03:32 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,115

Rep: Reputation: Disabled
If you are really running Slackware 14 you should already have GConf and Orbit installed.
Please read the Google Chrome README in Slackware 14's "extra" directory if you want to know how install Chrome and its dependency, the PAM library:

http://slackware.osuosl.org/slackwar...-chrome/README

Eric
 
Old 04-13-2013, 03:38 PM   #4
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 86

Rep: Reputation: 21
Hi! GConf is already installed on Slackware 14.0, I believe.

Have you tried following the directions here?
 
Old 04-13-2013, 03:39 PM   #5
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 427

Rep: Reputation: 106Reputation: 106
Eric, I think you may be mistaken about Orbit? Mine is installed from SBo on Slackware 14.0.
 
Old 04-13-2013, 03:43 PM   #6
alkahest
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks.

I got the Slackbuild from http://productforums.google.com/foru...me/X2HFGJ8nk44. I realize that this may not have been the best idea, but I am not really familiar with the FTP repository yet.

How do I download the files from ftp.belnet.be? If I click on the files, they just open in my browser.
 
Old 04-13-2013, 03:44 PM   #7
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 427

Rep: Reputation: 106Reputation: 106
right click -> Save as... ?
 
Old 04-13-2013, 04:10 PM   #8
alkahest
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Okay, I have the .deb and the .SlackBuild in the same directory (/downloads)

I have tried the following, all as Root:

Running '/downloads/google-chrome.SlackBuild' returns 'Permission Denied'

Running 'cd /downloads' and then 'google-chrome.SlackBuild' returns 'google-chrome.SlackBuild: Command Not Found'

Running 'su /downloads/google-chrome.SlackBuild' returns 'Unknown id: /downloads/google-chrome.SlackBuild'

Running 'cd /downloads' and then 'su google-chrome.SlackBuild' or 'su /google-chrome.SlackBuild' or any combination of slashes, gives "Unknown id" as well.

What am I doing wrong?
 
Old 04-13-2013, 04:13 PM   #9
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 86

Rep: Reputation: 21
Run:

chmod +x google-chrome.SlackBuild
./google-chrome.Slackbuild

or you can just use

sh google-chrome.SlackBuild

instead.
 
Old 04-13-2013, 04:37 PM   #10
alkahest
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks everyone!

I am now typing this response to you from Chrome.

This has been a great learning experience for me.

May the schwartz be with you
 
Old 04-23-2013, 12:47 PM   #11
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,647

Rep: Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736
If you want an easy way to keep Chrome up to date, you can run this script from time to time. It'll check what is the latest stable version of Chrome is and compare it to the version you have installed. If your version is different (or you don't have Chrome installed) it will automatically download the new version and repack into Slackware format. Otherwise it will just report that you are up to date. As a bonus you can run the script as a regular user (since it is able to make valid Slackware packages with root owned files even when not run as root).

P.S. If you want the same for Opera or Firefox I have similar scripts for them. It may not be immediately obvious why I have a Firefox script given that Slackware ships Firefox and provides updates but it can be handy as you can use it to track ESR releases (set FFESR=y) or if there is a delay in Pat updating the regular build. All of these scripts are doing binary repacks, not building from source. This has the advantage of being very fast and meaning you can take advantage of compilation optimisations that the upstream browser makers employ, e.g. PGO.
 
Old 04-23-2013, 03:39 PM   #12
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,314

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
firefox in slackware64 is built with PGO too since january (and the slackbuild supports building of esr releases)

Last edited by ponce; 04-23-2013 at 03:40 PM.
 
1 members found this post helpful.
Old 04-23-2013, 03:57 PM   #13
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,647

Rep: Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736
Quote:
Originally Posted by ponce View Post
firefox in slackware64 is built with PGO too since january (and the slackbuild supports building of esr releases)
Still I can instant upgrade as soon as the update is available, with no delay waiting for packages from Pat. Also no need to 'build' Slackbuilds.org ESR with PGO, which would use a lot of time and resources. Mozilla already provide nice "official" binaries. I'd prefer just use them and get instant upgrades (SBo is currently 4 versions back 17.0.1 instead of 17.0.5 meaning it is lacking security fixes).

The other benefit is that the script not only automatically downloads the binary and makes the Slackware packages, it does the checking for updates and it'll do all this without having to be root. You only need to switch to root to install any packages that were made, if updates are found.

Last edited by ruario; 04-23-2013 at 04:16 PM. Reason: added comment about old ESR on SBo
 
1 members found this post helpful.
Old 04-23-2013, 04:25 PM   #14
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,314

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
I agree with you, the script is very useful.
I just wanted to clarify that we have PGO (and esr support) in the official slackware package.
 
Old 04-23-2013, 04:32 PM   #15
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,647

Rep: Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736
Quote:
Originally Posted by ruario View Post
SBo is currently 4 versions back 17.0.1 instead of 17.0.5 meaning it is lacking security fixes.
Including 19(!) critical security fixes:

http://www.mozilla.org/security/know...irefoxESR.html

Yes, I know I could tweak the version of the SlackBuild on ESR but this is manual. Additionally as previously stated it is resource and time consuming to compile Firefox ESR with PGO, it is far quicker and easier to repackage the binaries. And it is easier with the script to keep track of updates.

This is also true with my latest-chrome script. I imagine a large number of people used the SlackBuild in /extra once or twice and then never gave much thought to tracking new versions (which are very much needed to remain secure). It is actually quite annoying that with Chrome you cannot easily keep track what the latest version actually is for users of non rpm/deb distros.

At least with Opera you get a popup dialog telling you when a new release is out (from within the browser itself), thus helping to keep the user aware if he/she is not secure.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg-config-path prakash.akumalla Linux - Newbie 13 02-25-2013 03:53 PM
[SOLVED] Package xproto was not found in the pkg-config search path. shitou Linux - Kernel 1 10-18-2010 10:39 AM
Package xmuu was not found in the pkg-config search path shachter Linux - Software 1 10-03-2008 03:39 AM
pkg-config search path? ironfistchamp Linux - Newbie 2 02-12-2006 08:00 AM
How to set the path for pkg-config?? westman Suse/Novell 4 02-07-2006 09:16 PM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration