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

Problems with the Linux version of XAMPP, questions, comments, and anything related.

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

Postby Crazybasenji » 07. October 2012 17:40

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. :?
Last edited by Crazybasenji on 08. October 2012 21:55, edited 1 time in total.
Crazybasenji
 
Posts: 4
Joined: 07. October 2012 17:26
Operating System: Ubuntu 12.04 LTS

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

Postby JonB » 07. October 2012 18:36

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby Crazybasenji » 07. October 2012 21:56

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... :)
Crazybasenji
 
Posts: 4
Joined: 07. October 2012 17:26
Operating System: Ubuntu 12.04 LTS

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

Postby JonB » 08. October 2012 03:23

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby Crazybasenji » 08. October 2012 12:31

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?
Crazybasenji
 
Posts: 4
Joined: 07. October 2012 17:26
Operating System: Ubuntu 12.04 LTS

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

Postby JonB » 08. October 2012 14:13

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
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby Crazybasenji » 08. October 2012 21:46

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
Crazybasenji
 
Posts: 4
Joined: 07. October 2012 17:26
Operating System: Ubuntu 12.04 LTS

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

Postby JonB » 09. October 2012 00:26

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby sneha227 » 02. February 2013 19:06

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
sneha227
 
Posts: 2
Joined: 02. February 2013 18:27
Operating System: fedora17


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 32 guests