Page 1 of 1

Unable to install XAMP - previous solved post... [Solved]

PostPosted: 07. October 2012 17:40
by Crazybasenji
I tried to download/install XAMP this morning using "sudo tar xvfz xampp-linux-1.8.1.tar.gz -C /opt" and got this message:

"tar (child): xampp-linux-1.8.1.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now"

I found a previous post with the same problem, but the user was able to solve the problem by discovering that the download was corrupted and starting over. I don't know how to check for that. But I have tried the download more than once.

I've been using Ubuntu on my old IBM Thinkpad T42 for about five years (if that helps), but don't often have occasion to use the command line. So I'm lost. Would appreciate any help. :?

Re: Unable to install XAMP - previous solved post no help

PostPosted: 07. October 2012 18:36
by JonB
You have a different problem I think:

tar (child): xampp-linux-1.8.1.tar.gz: Cannot open: No such file or directory


That probably means that the tarball (file) is not in the folder you started the command from. In Term, you should navigate to the folder where the XAMPP download is OR use the full pathname for the download file.

For instance, perhaps it was downloaded to /home/yourname/Downloads.

then the command would be:

Code: Select all
sudo tar xvfz /home/yourname/Downloads/xampp-linux-1.8.1.tar.gz -C /opt


Here is how to validate an MD5 cheksum:
http://www.reboot-n.com/bash-trick-md5sum.php

Good luck
8)

Re: Unable to install XAMP - previous solved post no help

PostPosted: 07. October 2012 21:56
by Crazybasenji
I tried the command you suggested, and got back the same basic error message with "/home/myname/Downloads/etc" in the appropriate place.

I'm wondering what you mean by this:
JonB wrote: OR use the full pathname for the download file.

?

Is there another way to enter the command? Still confused. Sometimes when I do something technical with this computer, everything works and I get (maybe a little) overconfident. Then I try something that looks fairly simple, and it doesn't work and I have no idea why, or how to begin to fix it. Trying to learn... :)

Re: Unable to install XAMP - previous solved post no help

PostPosted: 08. October 2012 03:23
by JonB
A. "/home/myname/Downloads/etc" <== this was an example. There is absolutely no way for me to know where you saved the download to, however - on most Linus systems that location is /home/%linux-user-name/Downloads.

B. the 'full pathname' is the location on the Linux filesystem of the download. What folder is the downloaded XAMPP tar.gz file in?

These are two sides of the same thing. You have to either start the "sudo tar xvfz xampp-linux-1.8.1.tar.gz -C /opt" command from the folder that the download is saved in, OR you have to fully name the location.

Good Luck
8)

Re: Unable to install XAMP - previous solved post no help

PostPosted: 08. October 2012 12:31
by Crazybasenji
Would I get that message if it didn't download? Because I did a search of the whole file system for "xampp-linux-1.8.1.tar.gz" and it didn't turn up. And if it didn't download, and I got the command typed in correctly, what do I try next?

Re: Unable to install XAMP - previous solved post no help

PostPosted: 08. October 2012 14:13
by JonB
Yes that message would be the same, the file may just not be there.

You could do a couple of different things.

One - Did you 'watch' the download as it happened in your browser? You may be getting an error. Open the 'Downloads or Transfers windo in the browser to see what is happening. Doesn't work? Try downloading with a different browser. Firefox, Google Chrome and Midori browsers all have Linux versions - besides what may have come with your distribution

Two - DL the XAMPP Linux installation file on a different machine. The tar.gz file will not be any different no matter what the Operating System it was downloaded with. Once downloaded, copy it to a USB thumbdrive and move it to your Linux machine.

Good Luck

Re: Unable to install XAMP - previous solved post no help

PostPosted: 08. October 2012 21:46
by Crazybasenji
Success! I didn't have any trouble this time except I did have to add the path to the Downloads folder to get it installed. I guess next time I'll know not to click on (what I thought was) the download link and then leave the room -- and assume it was finished when I got back. Duh!

Thanks, JonB, for the excellent help. :D

Re: Unable to install XAMP - previous solved post... [Solved

PostPosted: 09. October 2012 00:26
by JonB
Great! I'm glad it worked.

I almost always use full pathnames at the command line, along with the -v (verbose) argument so I can see what happened.

Good luck with XAMPP/lampp
8)

Re: Unable to install XAMP - previous solved post... [Solved

PostPosted: 02. February 2013 19:06
by sneha227
i am also facing a similar problem.. This is the error that i am getting. please help

[root@localhost ~]# tar xvfz /home/sneha/xampp-linux-1.8.1.tar.gz -C /opt
tar: /opt: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now