LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-22-2016, 03:44 PM   #1
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Rep: Reputation: 18
how to edit google-chrome script in /extra


I've been trying out the google-chrome script in /extra on my slackware-current system. I get this error message:

Quote:
root@tomslenevo:/home/tfrei/Downloads/chrome# ./google-chrome.SlackBuild
ar: /home/tfrei/Downloads/chrome/google-chrome-stable_current_i386.deb: No such file or directory
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
I've tried various edits on the script itself to specify that my system is a 64-bit, but with no luck. I imagine the edit has to take place in the following section of the script on the "ARCH=$..." line, but I'm either not getting the syntax right or putting in the wrong value.

Quote:
# Allow $ARCH to be preset before running the script. This is useful in the
# case where someone is running a 32-bit chroot environment under an x86_64
# kernel:
ARCH=${ARCH:-$(uname -m)}
case "$ARCH" in
i?86) DEBARCH="i386" ; LIBDIRSUFFIX="" ; ARCH=i386 ;;
x86_64) DEBARCH="amd64" ; LIBDIRSUFFIX="64" ; ARCH=x86_64 ;;
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac
Any help would be appreciated. Thanks!
 
Old 06-22-2016, 04:11 PM   #2
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Original Poster
Rep: Reputation: 18
solved, I think

I got the script to work. I think I was using the wrong syntax and putting in the wrong value. Here is what I did to make the script work for 64-bit. I commented out the default "ARCH=..." line and my edited line follows. Maybe this will help another inexperienced user like myself.
Quote:
# ARCH=${ARCH:-$(uname -m)}
ARCH=${ARCH:-x86_64}
The first line is the original language from the script. The following line is how it should be edited for 64-bit.
 
Old 06-22-2016, 04:35 PM   #3
JohnB316
Member
 
Registered: Jan 2007
Distribution: Slackware64 Current
Posts: 37

Rep: Reputation: 22
tfrei,

You stated in your second post that you were trying to install a 64-bit version of Chrome on your box. Yet, the execution snippet you quoted in your first post read like so:

Code:
root@tomslenevo:/home/tfrei/Downloads/chrome# ./google-chrome.SlackBuild
ar: /home/tfrei/Downloads/chrome/google-chrome-stable_current_i386.deb: No such file or directory
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Take a look at the second line of the code above. The script you were running was expecting a 32-bit file, based on the "i386" in the file name that the ar error message threw. There was actually no need to modify the $ARCH statement, as you did in your second post, since the actual problem wasn't with detecting the architecture of your box. Rather, it was with the file having "i386" in its name rather than "amd64" for the 64-bit version of Chrome. So, the better fix would have been to make sure that the file name in the SlackBuild read like so (quoting the SlackBuild in the Slackware64-current tree):

Code:
PKGNAM=google-chrome
RELEASE=${RELEASE:-stable}    # stable, beta, or unstable

# Allow $ARCH to be preset before running the script.  This is useful in the
# case where someone is running a 32-bit chroot environment under an x86_64
# kernel:
ARCH=${ARCH:-$(uname -m)}

case "$ARCH" in
  i?86) DEBARCH="i386" ; LIBDIRSUFFIX="" ; ARCH=i386 ;;
  x86_64) DEBARCH="amd64" ; LIBDIRSUFFIX="64" ; ARCH=x86_64 ;;
  *) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac
# Get the version from the Debian/Ubuntu .deb (thanks to Fred Richards):
VERSION=$(ar p google-chrome-${RELEASE}_current_${DEBARCH}.deb control.tar.gz 2> /dev/null | tar zxO ./control 2> /dev/null | grep Version | awk '{print $2}' | cut -d- -f1)
BUILD=${BUILD:-1}
Hope this helps.
 
Old 06-22-2016, 04:40 PM   #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
My guess? You are in fact running 32bit Slackware.
 
1 members found this post helpful.
Old 06-22-2016, 04:43 PM   #5
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
It looks like you tried to install 64-bit Chrome on your 32-bit Slackware. Does it actually run? Google no longer supports 32-bit architectures anymore AFAIK.
 
1 members found this post helpful.
Old 06-22-2016, 05:20 PM   #6
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Original Poster
Rep: Reputation: 18
Thanks for the feedback everyone.

As Eric and montagdude suggest, I am not running 64-bit Slackware. I thought I was, but I was mistaken. I'm going to start over and install the 64-bit version and my guess is that the script will run without a hitch. Sorry for creating so much confusion.

Last edited by tfrei; 06-22-2016 at 05:38 PM.
 
Old 06-22-2016, 08:15 PM   #7
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Original Poster
Rep: Reputation: 18
Started over with a fresh install of slackware-current --this time with 64-bit. Everything worked like a champ. The initial problem was created by my own error. I thought I was using 64-bit slackware-current, but I was actually using 32-bit.
 
  


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
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
LXer: Google Chrome Script/Extension installation error: Could not read source file LXer Syndicated Linux News 0 09-19-2011 09:10 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 11:18 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