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 06-12-2016, 09:33 PM   #1
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Rep: Reputation: 0
google-chrome command not found


Installed Google-Chrome following https://slackbuilds.org/mirror/slack...-chrome/README. There was a problem with the SlackBuild script but I found a fix for that. Everything installed to /opt/google/chrome: an executable script google-chrome, an executable chrome and also a subdirectory cron which contains another (different) executable script google-chrome.

If I type google-chrome in /opt/google/chrome, I get: command not found.

If I type google-chrome in /opt/google/chrome/cron, I get: command not found.

The original instructions for installing google-chrome said I needed libraries for something called PAM. This thread: http://www.linuxquestions.org/questi...am-4175483168/ said that PAM is not needed in Slackware 14.1 which I am using.

Also, whereis google-chrome gives:

google-chrome: /usr/local/bin/google-chrome.SlackBuild /usr/man/man1/google-chrome.1.gz /usr/share/man/man1/google-chrome.1.gz /usr/X11/man/man1/google-chrome.1.gz

PS I am no expert but I have managed to get my printer and video problems under control with Slackware and I don't want to give up now. The only reason I want google-chrome is to watch reruns of "The Americans" on Amazon Prime. Maybe there is an easier way?
 
Old 06-12-2016, 10:44 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
If I type google-chrome in /opt/google/chrome, I get: command not found.
Try
Code:
./google-chrome
 
Old 06-13-2016, 02:02 AM   #3
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

To run google-chrome from the command line without being in /opt/google/chrome directory, run the command google-chrome-stable :

Code:
$ whereis google-chrome-stable
google-chrome-stable: /usr/bin/google-chrome-stable /usr/X11R6/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/X11/bin/google-chrome-stable

--
SeB
 
Old 06-13-2016, 03:25 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by skippy1729 View Post
Installed Google-Chrome following https://slackbuilds.org/mirror/slack...-chrome/README. There was a problem with the SlackBuild script but I found a fix for that. Everything installed to /opt/google/chrome: an executable script google-chrome, an executable chrome and also a subdirectory cron which contains another (different) executable script google-chrome.

If I type google-chrome in /opt/google/chrome, I get: command not found.

If I type google-chrome in /opt/google/chrome/cron, I get: command not found.

The original instructions for installing google-chrome said I needed libraries for something called PAM. This thread: http://www.linuxquestions.org/questi...am-4175483168/ said that PAM is not needed in Slackware 14.1 which I am using.
If you are running Slackware 14.1 why are you using instructions from 14.0? That package and its instructions is severely outdated. There is a similar directory for Slackware 14.1: http://bear.alienbase.nl/mirrors/sla...google-chrome/
In case of a re-packaging of 3rd party binaries you could even try the script in Slackware-current: http://bear.alienbase.nl/mirrors/sla...google-chrome/ ... that one is even more recent than the one for Slackware 14.1.

Quote:
Also, whereis google-chrome gives:

google-chrome: /usr/local/bin/google-chrome.SlackBuild /usr/man/man1/google-chrome.1.gz /usr/share/man/man1/google-chrome.1.gz /usr/X11/man/man1/google-chrome.1.gz
Did you perhaps install a 64bit Chrome on a 32bit Slackware OS, or vice-versa?

Quote:
PS I am no expert but I have managed to get my printer and video problems under control with Slackware and I don't want to give up now. The only reason I want google-chrome is to watch reruns of "The Americans" on Amazon Prime. Maybe there is an easier way?
Note that Google decided to stop distributing 32bit versions of Chrome. Are you on 64bit or on 32bit?
In case of a 64bit OS you can also pick Chromium and its widevine and pepperflash plugins from my repository. I do also have a 32bit Chromium package but there will not be new 32bit versions of these plugins (again, because Google has ceased distributing those).
 
1 members found this post helpful.
Old 06-13-2016, 06:43 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You could save yourself some trouble with it and just use ruario's latest-chrome script. It will download the latest version, turn it into a Slackware package, and, optionally, install it.

As for your post, did you manually move the google-chrome.SlackBuild to /usr/local/? Because there's no reason for it to be there...
 
Old 06-13-2016, 07:48 AM   #6
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Emerson View Post
Try
Code:
./google-chrome
[1:1:0613/124719:ERROR:nacl_fork_delegate_linux.cc(315)] Bad NaCl helper startup ack (0 bytes)
 
Old 06-13-2016, 07:51 AM   #7
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by phenixia2003 View Post
Hello,

To run google-chrome from the command line without being in /opt/google/chrome directory, run the command google-chrome-stable :

Code:
$ whereis google-chrome-stable
google-chrome-stable: /usr/bin/google-chrome-stable /usr/X11R6/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/X11/bin/google-chrome-stable
SeB
google-chrome-stable: /usr/bin/google-chrome-stable /usr/X11R6/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/X11/bin/google-chrome-stable
bash-4.2# google-chrome-stable
[1:1:0613/125010:ERROR:nacl_fork_delegate_linux.cc(315)] Bad NaCl helper startup ack (0 bytes)




--
 
Old 06-13-2016, 07:55 AM   #8
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
If you are running Slackware 14.1 why are you using instructions from 14.0?
Because I am a dummy and I couldn't find the 14.1 instructions. I'll delete everything and start over.

Installed 64 bit version on 64 bit Slackware.

Last edited by skippy1729; 06-13-2016 at 07:56 AM.
 
Old 06-13-2016, 08:35 AM   #9
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bassmadrigal View Post
You could save yourself some trouble with it and just use ruario's latest-chrome script. It will download the latest version, turn it into a Slackware package, and, optionally, install it.

As for your post, did you manually move the google-chrome.SlackBuild to /usr/local/? Because there's no reason for it to be there...
When I download application packages, where should I put them and why? Never could figure that one out.
 
Old 06-13-2016, 09:01 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
With his script, you don't need to download anything. Just run the script and it will go to Google, get the latest version of Chrome and package it in /tmp/. There is an optional -i option that will install/upgrade it after the package is created.

If you're wondering about where to place his script, that's up to you. Just either right-click on the raw button and select "Save link as" (or your browser's equivalent) and save it to a folder, or you can "Copy link location" and use wget to download it. Once you have it downloaded, use sh /location/to/latest-chrome to run it. If you want to use the -i option, you would need to run the script as root.
 
2 members found this post helpful.
Old 06-22-2016, 12:09 PM   #11
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bassmadrigal View Post
With his script, you don't need to download anything. Just run the script and it will go to Google, get the latest version of Chrome and package it in /tmp/. There is an optional -i option that will install/upgrade it after the package is created.

If you're wondering about where to place his script, that's up to you. Just either right-click on the raw button and select "Save link as" (or your browser's equivalent) and save it to a folder, or you can "Copy link location" and use wget to download it. Once you have it downloaded, use sh /location/to/latest-chrome to run it. If you want to use the -i option, you would need to run the script as root.
Finally got around to trying this.

1. Downloaded unzipped latest-chrome.sh from https://gist.github.com/ruario/9672759.
2. Made it executable with chmod ugo+x latest-chrome.sh
3. Logged in as root
4. sh latest-chrome.sh -i
5. Tried:
./google-chrome
./Google-Chrome
./Google-chrome
./google-Chrome
the same without ./
everything gives command not found.
7. started X and tried the same commands on xterm.
6. Restarted and repeated 1-4 getting:
Google Chrome (51.0.2704.103) is already installed; exiting.

 
Old 06-22-2016, 12:34 PM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You don't want the "./" in front of the command. That means you're trying to launch an executable from within your current folder (which that executable wouldn't exist there as it's installed elsewhere on the system). In checking the script, it looks like ruario has chosen to have the program called google-chrome-stable (probably so you could have both the stable and developer versions installed side-by-side -- he's a developer for the Vivaldi browser, so he tests the other browsers frequently, which is why he created this nifty script) and it is stored in /usr/bin/. If you run that from the commandline, it should start right up.

But, he also added menu entries, and I know Chrome will be listed under KDE's Internet submenu.
 
Old 06-22-2016, 03:54 PM   #13
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bassmadrigal View Post
You don't want the "./" in front of the command. That means you're trying to launch an executable from within your current folder (which that executable wouldn't exist there as it's installed elsewhere on the system). In checking the script, it looks like ruario has chosen to have the program called google-chrome-stable (probably so you could have both the stable and developer versions installed side-by-side -- he's a developer for the Vivaldi browser, so he tests the other browsers frequently, which is why he created this nifty script) and it is stored in /usr/bin/. If you run that from the commandline, it should start right up.

But, he also added menu entries, and I know Chrome will be listed under KDE's Internet submenu.
google-chrome-stable gives

[1:1:0622/203453:ERROR:nacl_fork_delegate_linux.cc(315)] Bad NaCl helper startup ack (0 bytes)

Same result under X using xterm.

I seem to be living under a black cloud for the last year.

Last edited by skippy1729; 06-22-2016 at 03:57 PM.
 
Old 06-22-2016, 04:41 PM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by skippy1729 View Post
google-chrome-stable gives

[1:1:0622/203453:ERROR:nacl_fork_delegate_linux.cc(315)] Bad NaCl helper startup ack (0 bytes)

Same result under X using xterm.

I seem to be living under a black cloud for the last year.
Let me guess... you are running X as the 'root' user?
 
Old 06-22-2016, 05:24 PM   #15
skippy1729
Member
 
Registered: Oct 2008
Posts: 95

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
Let me guess... you are running X as the 'root' user?
yes
 
  


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
[SOLVED] Google Chrome works in GNOME when started from a command line, but it's not displayed in the applications menu. PTrenholme Fedora 6 03-28-2016 06:47 PM
LXer: Chrome OS is not dead, insists Google veep in charge of Chrome OS LXer Syndicated Linux News 0 10-31-2015 05:11 AM
LXer: Google Releases Chrome 44 Stable for Windows, Mac OS X, Linux, and Chrome OS LXer Syndicated Linux News 0 07-21-2015 07:03 PM
Google Chrome New Tab Page (!)= Chrome OS Desktop Kenny_Strawn Linux - General 6 02-19-2011 05:36 PM
LXer: As Goes Chrome OS, So Goes Google's Chrome Browser LXer Syndicated Linux News 4 10-09-2010 03:18 PM

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

All times are GMT -5. The time now is 04:11 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