Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.