Extracting the wrong file format?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Extracting the wrong file format?

Postby Umeaboy » Jul 18th, '22, 06:53

Call me stupid, but
build-cmd.log
(4.5 KiB) Downloaded 305 times
is a replica of a shell script for Firestorm Viewer for Second Life in a log file form (since .sh extensions isn't uploadable) that I got from reading and following the instructions on https://wiki.firestormviewer.org/fs_compiling_firestorm_linux makes me feel that the devs made a booboo somewhere in the handling of curl downloading the archive which if you download it manually is in the .tar format, not in the expected tar.gz format as the guide tells you.

I know that it says Clone 3p-FmodStudio(optional) in the guide, but if it improves the audio-based experience in SL I say why not use it?

Here's what I've done so far until it failed to extract the archive:

Code: Select all
mkdir -p ~/src
cd ~/src/
git clone https://vcs.firestormviewer.org/phoenix-firestorm
git clone https://vcs.firestormviewer.org/fs-build-variables
git clone https://vcs.firestormviewer.org/3p-libraries/3p-fmodstudio
cd ~/src/3p-fmodstudio

I put the deb package of FM Studio API and fmodstudioapi20206linux.tar.gz in that directory as the guide tells you to.

I now did:

Code: Select all
export AUTOBUILD_VARIABLES_FILE=$HOME/src/fs-build-variables/variables


As I get to do autobuild build -A 64 --all it fails with this error:

curl: (7) Failed to connect to 192.168.1.115 port 80: No route to host
ERROR: building configuration {'configure': None, 'build': None, 'default': True, 'name': 'default'} returned 7
For more information: try re-running your command with --verbose or --debug

I know that I'm supposed to replace that internal local adress with a URL to download the archive from and if I replace that with https://d2m8b09s60for2.cloudfront.net/f ... api/Linux/ I get this error:

+ tar xvf fmodstudioapi20206linux.tar.gz
tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: building configuration {'configure': None, 'build': None, 'default': True, 'name': 'default'} returned 2

Here's the download URL for the tar.gz copied from the download window in Firefox:

Code: Select all
https://d2m8b09s60for2.cloudfront.net/fmodstudio/api/Linux/fmodstudioapi20206linux.tar.gz?Expires=1658119731&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMm04YjA5czYwZm9yMi5jbG91ZGZyb250Lm5ldC9mbW9kc3R1ZGlvL2FwaS9MaW51eC9mbW9kc3R1ZGlvYXBpMjAyMDZsaW51eC50YXIuZ3oiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2NTgxMTk3MzF9fX1dfQ__&Signature=S6FlufRwlcGhDw~pt9N3zEKy3WNrszl9IIzUnl-QSA5I1J-wsF4rHDHh15uqHUUXbHLCQR3WKhFpax4upXsqa5~iY3lxRL78JdcbXH3xfiZjs4KrjQh0Zjd099o5ps6dZwKuYpPOvrcWSjoxBpl6LKxUpQkaQnoS4g1UqnQqOw4xVGS11W6gDYoORL-OcvuLJmVEbq9WC7oWWuI24~QPd4~llNEnR8fZguwG1zCSc4prixj2uBWGvXT7RCPyMhG91TraTXEbDDibzhA6oKfML71rpDduxb7Y2ipAuuAJBfl9gQconLlt4ILvSb4AFj6gzTbzi~DbQleyisOvmyiTaQ__&Key-Pair-Id=APKAJ4WISJ3BQB7EL4AA

That last part looks to me be the key that is missing, but how do I implement it to the script?
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28

Re: Extracting the wrong file format?

Postby doktor5000 » Jul 18th, '22, 17:03

So what's your actual question ?

If tar is not able to extract your archive, it's usually the wrong file type or corrupted.
Also if you have the file fmodstudioapi20206linux.tar.gz already, why not simply rewrite the build script to simply copy this file into the build folder instead of downloading it with curl ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18039
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Extracting the wrong file format?

Postby sturmvogel » Jul 18th, '22, 20:08

doktor5000 has a valid point there. After reading your description what you did and the official description what you should do it seems that you didn't follow the official description and try to do some fancy stuff on your own.
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: Extracting the wrong file format?

Postby jiml8 » Jul 19th, '22, 19:24

...and when curl throws an error that says it cannot connect, that's a pretty solid indicator that your download has failed and hence there is nothing to unpack.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron