LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2018, 06:22 AM   #1
Wiatr
LQ Newbie
 
Registered: Sep 2018
Posts: 5

Rep: Reputation: Disabled
I can not install tar.gz


Hello .
I have Ubuntu 18.04 and I can not install tar.gz packages. How to compile it or what is the walkthrough of this problem.
Code:
tar -xfz filename.tar.gz
suits me
Code:
tar: z: Can not open: There is no such file or directory
tar: Error is not recoverable: exiting now
I am unpacking this manually and opening the file in the terminal
Code:
sudo apt-get install build-essential
next
Code:
./configure
gets in answer
Code:
bash: ./config: There is no such file or directory

Last edited by Wiatr; 09-25-2018 at 06:29 AM.
 
Old 09-25-2018, 06:43 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi & Welcome to LQ.

In order to untar a tar.gz you have to be in the directory in which the tar file is in.

And to run the /.configure command you also have to be in the proper directory for the cmd-line interpreter to see it.

Here's an example:
http://sourcedigit.com/20839-extract...-files-ubuntu/
 
Old 09-25-2018, 06:48 AM   #3
Wiatr
LQ Newbie
 
Registered: Sep 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
is in the correct directory
 
Old 09-25-2018, 06:54 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
If you were in the correct directory bash would not have returned this:

Code:
./config: There is no such file or directory
What directory is your tar.gz in?
 
Old 09-25-2018, 06:55 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,730

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by Wiatr View Post
is in the correct directory
Sorry, it can only be one of two things:
  • The filename is wrong
  • The directory is wrong
A better question is, what software are you trying to install, and why aren't you installing it through your software/package manager?
 
Old 09-25-2018, 06:56 AM   #6
Wiatr
LQ Newbie
 
Registered: Sep 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
my tar.gz is on the desktop
 
1 members found this post helpful.
Old 09-25-2018, 06:56 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Hi and welcome to the forums,

This variety of questions are all disconnected:
Quote:
Originally Posted by Wiatr View Post
I have Ubuntu 18.04 and I can not install tar.gz packages. How to compile it or what is the walkthrough of this problem.
Code:
tar -xfz filename.tar.gz
suits me
Code:
tar: z: Can not open: There is no such file or directory
tar: Error is not recoverable: exiting now
I am unpacking this manually and opening the file in the terminal
Here the answer is exactly what Hazel said. Which is that you need to be in the same directory where the tar file is located. There is nothing wrong with tar on your system.
Quote:
Originally Posted by Wiatr View Post
Code:
sudo apt-get install build-essential
This command is totally non-related to anything about tar. build-essential is a package for compiling code.
Quote:
Originally Posted by Wiatr View Post
next
Code:
./configure
gets in answer
Code:
bash: ./config: There is no such file or directory
Because there is nothing to configure. Where did you get the idea that you needed to configure anything for build-essential?

As I say, your variety of questions are all disconnected. You run ./configure when you have source to build and install. You would install the package build-essential in order to have the tools to be able to build and install. There is no such thing a unpacking that particular package.

Whatever source package you do have would be what you perform the tar xvf call on, however you have not indicated what this filename is.

Once something is extracted, then you can see if it is source, if it contains a configure script, and further, if it contains a README or some other file informing you about what you've extracted.
 
1 members found this post helpful.
Old 09-25-2018, 06:58 AM   #8
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: Debian
Posts: 900

Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by Wiatr View Post
Code:
tar -xfz filename.tar.gz
suits me
Code:
tar: z: Can not open: There is no such file or directory
tar: Error is not recoverable: exiting now
Option order is important with "-f". Actually "-f" should be mentioned last. So try instead:
Code:
tar -xzf filename.tar.gz
and by the way, "z" option is not necessary anymore:
Quote:
Compressed archives are recognised automatically, it is no longer necessary to specify -Z, -z, or -j options to read them. Thus, you can now run tar tf archive.tar.gz and expect it to work!
Source: https://www.gnu.org/software/tar/

Last edited by l0f4r0; 09-25-2018 at 07:04 AM.
 
Old 09-25-2018, 06:59 AM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Wiatr View Post
my tar.gz is on the desktop
Type this in your terminal.

Code:
cd Desktop
And press Enter.

Than type ls and press Enter. Post the output:-
 
Old 09-25-2018, 07:07 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
plus make sure you have a configure, and not a MakeFile or an automake.sh if you are in the same dir as the source code. 'ls' works for that.
 
Old 09-25-2018, 11:43 AM   #11
Wiatr
LQ Newbie
 
Registered: Sep 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
1
Code:
cd Desktop
2
Code:
ls
in answer
Code:
qjoypad-4.1.0  qjoypad-4.1.0.tar.gz
3
Code:
cd qjoypad-4.1.0
4
Code:
./configure
in answer
Code:
bash: ./config: There is no such file or directory
 
Old 09-25-2018, 12:13 PM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by Wiatr View Post
1in answer
Code:
bash: ./config: There is no such file or directory
To emphasize:
Quote:
Originally Posted by BW-userx View Post
plus make sure you have a configure, and not a MakeFile or an automake.sh if you are in the same dir as the source code. 'ls' works for that.
 
Old 09-25-2018, 12:37 PM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I've just downloaded the source code in question (from https://sourceforge.net/projects/qjo...ar.gz/download).

The extracted directory structure does not have an executable in the main directory, you have to go into the src directory to configure and install the application.

The file INSTALL.txt in the main directory explains this. The file README.txt also contains some important information on pre-install configuration.
 
Old 09-25-2018, 12:38 PM   #14
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
qjoypad 4.1.0 is in the Ubuntu repositories. You can install it with a couple of mouse clicks in the Ubuntu Software Center, or with the following terminal command. Easy-peasy. Hope that helps.

Code:
sudo apt install qjoypad
 
2 members found this post helpful.
Old 09-25-2018, 12:39 PM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
More specifically, INSTALL.txt contains the following instructions (obviously replace the ? with the actual subversion number):

Quote:
tar -xzvf qjoypad-4.?.tgz
cd qjoypad-4.?/src
./config
make
make install
 
  


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 install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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