VectorLinux

The nuts and bolts => Web & Internet => Topic started by: smelm0 on January 14, 2010, 09:18:26 am

Title: google chrome
Post by: smelm0 on January 14, 2010, 09:18:26 am
running vl6 on a P3 t20 ibm lap. satisfactory surfing with swiftfox but looking for a bit more speed if possible.
followed tutorial for installing google chrom rpm and can't get it to launch. getting the following error

mikey:$ google-chrome
/usr/bin/google-chrome: line 27: /opt/google/chrome/chrome: cannot execute binary file
/usr/bin/google-chrome: line 27: /opt/google/chrome/chrome: Success

any help would be appreciated.
thanks
mike
Title: Re: google chrome
Post by: smelm0 on January 14, 2010, 09:32:33 am
the 1st was the 64 rpm ver by mistake. loaded the 32 bit ver and I get the following error:

mikey:$ google-chrome
/usr/bin/google-chrome: error while loading shared libraries: libnssutil3.so.1d: cannot open shared object file: No such file or directory

I have nss installed as per tutorial.
thanks again
mike
Title: Re: google chrome
Post by: nightflier on January 14, 2010, 09:35:18 am
Not at my home box now, but I think I just made symlink libnssutil3.so.1 pointing to libnssutil3.so.
Title: Re: google chrome
Post by: stretchedthin on January 14, 2010, 10:11:16 am
Could you tell me which mozilla-nss version number you installed?
Title: Re: google chrome
Post by: smelm0 on January 14, 2010, 02:22:46 pm
mozilla-nss-3.12-i486-1ant.tgz
Title: Re: google chrome
Post by: stretchedthin on January 14, 2010, 03:13:34 pm
mozilla-nss-3.12-i486-1ant.tgz
I think that may be the problem.  The tutorial calls for mozilla-nss-3.12.3.  Earlier versions are not going to work with google-chrome, by my understanding.
Try this ...
right click on mozilla-nss-3.12 and remove package, or run rmpackage from the terminal.
Then download mozilla-nss-3.12.3 and install.
Let me know if that is enough.
Ken
Title: Re: google chrome
Post by: smelm0 on January 14, 2010, 03:31:25 pm
can't seem to find mozilla-nss-3.12.3 to download.
Title: Re: google chrome
Post by: smelm0 on January 14, 2010, 03:39:28 pm
found package at:
http://connie.slackware.com/~alien/slackbuilds/mozilla-nss/pkg/12.2/
installed and still have same libnss error
Title: Re: google chrome
Post by: stretchedthin on January 14, 2010, 03:54:35 pm
OK, I was afraid you might.  You will now need to link the requested for file with the one installed.
This unfortunatly, happens when you start with the wrong mozilla-nss.

Here is what we need to do, try and start google-chrome again and post the error here.
I will give you a command to link the library to the correct one on the system.
Then run google-chrome again. This should generate one more error.  Post that error as well.
We will fix it with a link 'ln' as well.
That should do it, I hope.
Ken
Title: Re: google chrome
Post by: Daniel on January 14, 2010, 04:55:39 pm
For future reference, I believe mozilla-nss is in the repository. (maybe in testing right now)
Title: Re: google chrome
Post by: GrannyGeek on January 14, 2010, 07:48:08 pm
Here is what we need to do, try and start google-chrome again and post the error here.
I will give you a command to link the library to the correct one on the system.
Then run google-chrome again. This should generate one more error.  Post that error as well.
We will fix it with a link 'ln' as well.

Should he run
ldconfig
as root after creating the symlink? I routinely run it when I install anything unless Gslapt took care of the whole thing.
--GrannyGeek
Title: Re: ken as per your instruction for google chrome
Post by: smelm0 on January 14, 2010, 08:03:47 pm
this is the error:

mikey:$ google-chrome
/usr/bin/google-chrome: error while loading shared libraries: libnssutil3.so.1d: cannot open shared object file: No such file or directory
Title: Re: google chrome
Post by: stretchedthin on January 15, 2010, 04:23:04 am
Sorry, I didn't get back sooner.
First of all Granny may have a good idea there.  I'd even try running ldconfig right now as root, then trying google-chrome again, just to see if that is enough.

Otherwise here is what you do.
Still as root update you locate database with...
slocate -u
It will take a 1/2 minute to finish.
Then staying as root do...
locate libnssutil3*

You may get a couple results but what you are looking for will be in /usr/lib/ and may lood something like...
/usr/lib/libnssutil3.so
Then you want to link the library you have with the name google-chrome is looking for, like so....
ln /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d

When you run google-chrome again you will get a simular error but a different filename.
Do the same steps...
locate libnsswhatever    (libnsswhatever = the name of the missing library that turns up in the error)
Then ln (link) the file name the machine has with the file google-chrome is looking for.
This is a guess but I think google-chrome may error on libnss3.so.1d in which case the link would look like this...
ln /usr/lib/libnss3.so /usr/lib/libnss3.so.1d
Title: Re: google chrome
Post by: Daniel on January 15, 2010, 06:33:53 am
Then you want to link the library you have with the name google-chrome is looking for, like so....
ln /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d

Wouldn't it be: ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d ?
(needs the -s to make it a symbolic link)
Title: Re: google chrome
Post by: smelm0 on January 15, 2010, 09:29:57 am
ken

this is about to where I'm at. I tried the ldconfig as root to see if that alone would remedy the error but as you can see it was a no go.

root:# ldconfig
t20://home/mikey
root:# google-chrome
/usr/bin/google-chrome: error while loading shared libraries: libnssutil3.so.1d: cannot open shared object file: No such file or directory
t20://home/mikey
root:# slocate -u
t20://home/mikey
root:# locate libnssutil3.so.1d
t20://home/mikey
root:# locate libnssutil3.so
/opt/swiftfox/libnssutil3.so
/opt/google/chrome/libnssutil3.so
/usr/lib/firefox-3.0.6/libnssutil3.so
/usr/lib/libnssutil3.so
t20://home/mikey
root:#

I'm kind of stuck here as to setting up the symlink as per your suggestion. need a bit of an assist.
btw, I tried to uninstall chrome and reinstall it with the proper nss package but as you can see I'm still not getting it running

thanks
mike
Title: Re: google chrome
Post by: stretchedthin on January 15, 2010, 10:55:36 am
Then you want to link the library you have with the name google-chrome is looking for, like so....
ln /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d

Wouldn't it be: ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d ?
(needs the -s to make it a symbolic link)

Thanks Daniel; It was 4:30 in the morning when I wrote that. My newborn just was not sleeping last night and I though I could handle answering the question. Guess not.

Quote
I'm kind of stuck here as to setting up the symlink as per your suggestion. need a bit of an assist.
btw, I tried to uninstall chrome and reinstall it with the proper nss package but as you can see I'm still not getting it running

smelm0, try the steps as Daniel suggested with the '-s' option.  Such as ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d

I'm going to see friends over the Weekend, will be back on Monday.  If you still have not found a solution I will try to recreate it on a Virtual Machine and see what the steps are to dig our way out.

Title: Re: google chrome {solved}
Post by: smelm0 on January 16, 2010, 07:22:55 am
thanks ken et al.
uninstalled chrome .rpm and .tgz and then downloaded and reinstalled and bingo! It fired up.Go figure.
thanks again to all for the help.
best
mike
Title: Re: google chrome
Post by: stretchedthin on January 16, 2010, 04:38:55 pm
Good stuff, glad you stuck with it.
Title: Re: google chrome
Post by: richardcoop on February 11, 2010, 08:04:29 am
I am having a different problem installing google chrome following the proceedure.

On a new install everything seems to be going OK  but when I run google chrome from the command line it does not connect to the internet and I get a string of errors in the terminal:

Any ideas?

vl:$ google-chrome
[4458:4465:939187804:ERROR:/usr/local/google/home/chrome-eng/b/slave/chrome-official-linux/build/src/base/shared_memory_posix.cc(192)] Creating shared memory in /dev/shm/com.google.chrome.YBpFmE failed: No such file or directory
[4458:4458:939375277:ERROR:/usr/local/google/home/chrome-eng/b/slave/chrome-official-linux/build/src/base/shared_memory_posix.cc(192)] Creating shared memory in /dev/shm/com.google.chrome.2vjWfm failed: No such file or directory
[4458:4470:939598689:ERROR:/usr/local/google/home/chrome-eng/b/slave/chrome-official-linux/build/src/base/shared_memory_posix.cc(192)] Creating shared memory in /dev/shm/com.google.chrome.aCipfk failed: No such file or directory
[4458:4458:939690691:ERROR:/usr/local/google/home/chrome-eng/b/slave/chrome-official-linux/build/src/base/shared_memory_posix.cc(192)] Creating shared memory in /dev/shm/com.google.chrome.ohYVlm failed: No such file or directory
[4458:4470:939901092:ERROR:/usr/local/google/home/chrome-eng/b/slave/chrome-official-linux/build/src/base/shared_memory_posix.cc(192)] Creating shared memory in /dev/shm/com.google.chrome.F1N8Ft failed: No such file or directory

Title: Re: google chrome
Post by: stretchedthin on February 11, 2010, 08:52:33 am
Which Vectorlinux version are you installing Google-chrome to VL-light, standard, etc.
Title: Re: google chrome
Post by: richardcoop on February 11, 2010, 11:33:41 am
I have been usung VL 6.0 std gold

Thanks for your help!

Title: Re: google chrome
Post by: stretchedthin on February 11, 2010, 12:28:07 pm
I have not run it to error messages such as you are seeing.
It is possible that they have changed something within Google-chrome download itself.  Let me try a test run on my end and I'll get back to you.
btw, this is the method I use for Standard.  http://www.opensourcebistro.com/Tutorial/VL60/10.Browsers/gchrome/gchrome2.htm (http://www.opensourcebistro.com/Tutorial/VL60/10.Browsers/gchrome/gchrome2.htm)
Title: Re: google chrome
Post by: richardcoop on February 11, 2010, 01:34:51 pm
Thanks,

That is essentially the method I used. Only difference I can see is that I installed mozilla-nss using mc.
Title: Re: google chrome
Post by: Daniel on February 11, 2010, 03:32:59 pm
BTW mozilla-nss is in the repo.
Title: Re: google chrome
Post by: stretchedthin on February 11, 2010, 05:18:32 pm
I just did a fresh installation of google chrome on a newly installed VL6.0 standard as per the previously posted tut and it still works.  My guess it that the mozilla-nss version is potentially the problem.  It is very important to use version number 3.12.3.  Early versions just will not work. Even version number 3.12. will fail.  Double check which version you installed.  If you installed an earlier version number you need to removepkg it and also remove all traces of the google-chrome install.  Get the mozilla-nss version 3.12.3 here (http://connie.slackware.com/~alien/slackbuilds//mozilla-nss/pkg/12.2/mozilla-nss-3.12.3-i486-1alien.tgz), install it, then install google-chrome again.

Let me know if this is a possible solution.
Title: Re: google chrome
Post by: richardcoop on February 11, 2010, 06:03:16 pm
I installed mozilla-nss-3.12.3-i486-1alien.tgz so I don't think that is the problem.

Title: Re: google chrome
Post by: stretchedthin on February 11, 2010, 06:33:05 pm
I took a closer look at your error message.  It looks very similar to the error I've only got when doing an install on Vectorlinux-light.  The trouble there was that google-chrome can not write to /dev/shm/ because of permisions.

Check out the step in this tut involving 'chmod 777 /dev/shm/', it may solve your problem.
http://www.opensourcebistro.com/Tutorial/VL60/10.Browsers/gchrome/gchromeVLlight.htm (http://www.opensourcebistro.com/Tutorial/VL60/10.Browsers/gchrome/gchromeVLlight.htm)


Title: Re: google chrome
Post by: richardcoop on February 11, 2010, 06:49:34 pm
That was it!! Works now.

Thanks alot!