LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-04-2008, 10:13 AM   #1
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Build Chrome on Slackware-current fail--No package 'nss' found


When I try to build Google Chrome on slackware-current, it fail on seeking package 'nss':
Code:
grissiom@gri:/usr/local/src/chromium/src/chrome$ ../third_party/scons/scons.py Hammer
scons: Reading SConscript files ...
Package nss was not found in the pkg-config search path.
Perhaps you should add the directory containing `nss.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nss' found
OSError: 'pkg-config --cflags --libs nss' exited 1:
  File "/usr/local/src/chromium/src/chrome/SConstruct", line 7:
    exports=['build_component'])
  File "/usr/local/src/chromium/src/third_party/scons/scons-local-0.98.3/SCons/Script/SConscript.py", line 596:
    return apply(method, args, kw)
  File "/usr/local/src/chromium/src/third_party/scons/scons-local-0.98.3/SCons/Script/SConscript.py", line 533:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/local/src/chromium/src/third_party/scons/scons-local-0.98.3/SCons/Script/SConscript.py", line 256:
    exec _file_ in call_stack[-1].globals
  File "/usr/local/src/chromium/src/build/SConscript.main", line 371:
    env.ParseConfig('pkg-config --cflags --libs nss')
  File "/usr/local/src/chromium/src/third_party/scons/scons-local-0.98.3/SCons/Environment.py", line 1371:
    return function(self, self.backtick(command))
  File "/usr/local/src/chromium/src/third_party/scons/scons-local-0.98.3/SCons/Environment.py", line 549:
    raise OSError("'%s' exited %d" % (command, status))
I did some search on slackbuilds.org and packages.slackware.it but hardly to find any package meets the demand. The mozilla-firefox-3.0.1-i686-1 package contain usr/lib/firefox-3.0.1/libnss3.so but could not reslove the problem. Does anyone have any idea? Thanks in advance
 
Old 09-04-2008, 10:27 AM   #2
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Chrome doesn't work on Linux.At most it will build some modules and check them.
 
Old 09-04-2008, 10:37 AM   #3
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by crashmeister View Post
Chrome doesn't work on Linux.At most it will build some modules and check them.
Hmm,,,,sad news....;(
 
Old 09-04-2008, 11:23 AM   #4
Crashbox
Member
 
Registered: Jun 2004
Location: USA
Distribution: Slackware
Posts: 137

Rep: Reputation: 22
actually...

actually, they have 'released' Chrome for linux:

arstechnica.com

or go right to the source:

Chromium

As for building it, I haven't tried yet. I'll check back if/when I do.
 
Old 09-04-2008, 11:47 AM   #5
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Quoting the build instructions:

Note: There is no working Chromium-based browser on Linux. Although many Chromium submodules build under Linux and a few unit tests pass, all that runs is a command-line "all tests pass" executable.

It's in a big red box on top of the page.
 
Old 09-04-2008, 12:01 PM   #6
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
1. Take the build files from here
2. Replace nss-3.11.4-with-nspr-4.6.4.tar.gz with nss-3.12-with-nspr-4.7.tar.gzfrom here
3. Modify mozilla-nss.SlackBuild:
Code:
(...)
VERSION=${VERSION:-3.12}
(...)
NSPR=4.7
(...)
4. Build the package
5. Install the package
6. Rename /usr/lib/pkgconfig/mozilla-nss.pc to /usr/lib/pkgconfig/nss.pc -- I forgot when exactly is needed this step, I think right before run
Code:
$ ../third_party/scons/scons.py Hammer
There is no functional build for Linux.
 
Old 09-04-2008, 10:17 PM   #7
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Thanks Road_map, your post rocks~ But just as crashmeister said, There is no working Chromium-based browser on Linux. Chrome won't build on my box due to a v8 compile error... (src version 1754) Is Google truely Linux-friendly?
 
Old 09-04-2008, 10:53 PM   #8
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
I'm very-much looking forward to a Linux version of Chrome.....heh....I don't do Winders.
 
Old 09-05-2008, 10:09 AM   #9
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Quote:
Originally Posted by grissiom View Post
Chrome won't build on my box due to a v8 compile error... (src version 1754)
After Build Instructions (Linux):
Code:
$mkdir ~/chromium
$ cd chromium
$ svn co http://src.chromium.org/svn/trunk/depot_tools/linux depot_tools
$ export LANG=C
$ ./depot_tools/gclient config http://src.chromium.org/svn/trunk/src
$ ./depot_tools/gclient sync
$ cd chromium/src/chrome
$ ../third_party/scons/scons.py Hammer
And the result is
Quote:
scons: done building targets.
Then, there are 2 tests (in ~/chromium/src/chrome/Hammer):
Code:
$ ./base_unittests
$ ./net_unittests
That is all, till now:
Quote:
[----------] Global test environment tear-down
[==========] 188 tests from 40 test cases ran.
[ PASSED ] 188 tests.
...
[----------] Global test environment tear-down
[==========] 174 tests from 17 test cases ran.
[ PASSED ] 174 tests.
 
Old 09-05-2008, 09:10 PM   #10
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by Road_map View Post
After Build Instructions (Linux):
Code:
$mkdir ~/chromium
$ cd chromium
$ svn co http://src.chromium.org/svn/trunk/depot_tools/linux depot_tools
$ export LANG=C
$ ./depot_tools/gclient config http://src.chromium.org/svn/trunk/src
$ ./depot_tools/gclient sync
$ cd chromium/src/chrome
$ ../third_party/scons/scons.py Hammer
And the result is

Then, there are 2 tests (in ~/chromium/src/chrome/Hammer):
Code:
$ ./base_unittests
$ ./net_unittests
That is all, till now:
Hmm, that sounds exciting~ Is there only unittests but not chrome binary?
 
Old 09-05-2008, 10:01 PM   #11
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Is Google truely Linux-friendly?
This is the very first public release of a BETA product. It isn't surprising that they have only targeted the largest userbase for the test so they can collect the most amount of feedback possible (while targeting only one platform for the sake of simplicity).

Once the codebase is refined, the OS X and Linux specific changes will be put in and official versions of Chrome for those platforms can be released. As it is, we can clearly see that their codebase was at least designed from the start to be portable and Unix-compatible; which is already more than a lot of other developers are willing to go. Google is investing heavily in Linux (I.E. Android) and they are certainly progressing with an eye towards multiplatform applications.
 
Old 09-06-2008, 12:26 AM   #12
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by MS3FGX View Post
This is the very first public release of a BETA product. It isn't surprising that they have only targeted the largest userbase for the test so they can collect the most amount of feedback possible (while targeting only one platform for the sake of simplicity).

Once the codebase is refined, the OS X and Linux specific changes will be put in and official versions of Chrome for those platforms can be released. As it is, we can clearly see that their codebase was at least designed from the start to be portable and Unix-compatible; which is already more than a lot of other developers are willing to go. Google is investing heavily in Linux (I.E. Android) and they are certainly progressing with an eye towards multiplatform applications.
Yes, you said the truth. Maybe I'm too hasted
 
Old 09-06-2008, 04:43 AM   #13
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
They are working on Mac and Linux versions.http://googlemac.blogspot.com/2008/0...priorities.htm
 
  


Reply



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
How to build a slackware package : itz2000 Slackware 12 05-15-2007 07:47 PM
Samba package in Slackware current MS3FGX Slackware 17 09-28-2006 08:57 PM
Anyone know of a dvb-tools package for slackware 10.2 current? slothpuck Slackware 1 07-01-2006 10:36 AM
slackware current bittorent package install question cinchel Linux - Software 3 10-25-2004 12:25 AM
Slackware-current Perl 5.8.1 Package tuxq Slackware 0 10-24-2003 07:37 AM

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

All times are GMT -5. The time now is 10:10 PM.

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