No such file or directory

Asked by Jack Arrundale

I am trying to load Xammp on to ubuntu. I have downloaded the linux version from apachefriends.org . The xampp instructions say to extract the files using the following code "tar xvfz xampp-linux-1.7.tar.gz -C /opt". This returns the message; tar: xampp-linux-1.7.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
I have tried saving the downloaded file in different locations with the same result.
Where am I going wrong and is the syntax given in the instructions from Apachefriends correct foe Ubuntu 8. 10?
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
FD
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1
Revision history for this message
FD (fdouw) said :
#2

Have you, by any chance, downloaded a file with a different name? Also, you have to run this command from the location to which you have downloaded the file.

Revision history for this message
Jack Arrundale (j-arrundale) said :
#3

hi
thanks. The howto was an earlier version of the one I had from the Xampp website. Hoever it did point to what I think my problem is,as did Floris. When downloading I only have two choices "save" or "open, the default for which is archive manager". I have tried both and openig with other than Archive manager but with no success.
My problem therefore seems to be matching up terminal with the location of the file to extracted.
Any further help greatly appreciated
Jack

Revision history for this message
Bhavani Shankar (bhavi) said :
#4

save the file to a directory .. create a new directory and compile the file

https://help.ubuntu.com/community/CompilingSoftware

Revision history for this message
FD (fdouw) said :
#5

I had a look at apachefriends.org, and the file name you mention seems to be correct. I do not know how acquainted you are with the terminal, but I suppose you still know to which folder you have downloaded the file. As an example, in my case this is my download folder, “/home/floris/Downloads”; I would open a terminal, type “cd /home/floris/Downloads”, and then “sudo tar xvfz xampp-linux-1.7.tar.gz -C /opt”, this would install XAMPP. Notice the use of “sudo”; you need root access to install anything in “/opt”.

Revision history for this message
FD (fdouw) said :
#6

@Bhavani Shankar: The files are already compiled; you only need to extract the package and move it to where you want to store it on your computer.

Revision history for this message
Jack Arrundale (j-arrundale) said :
#7

hi
Thanks again. You spotted my underlying problem-lack of familiarity with terminal as a new comer to linux. However I have downloaded Xampp to "downloads" and "desktop" and followed your advice. The following was the result in each case.
jack@orac:~$ cd/home/jack/desktop
bash: cd/home/jack/desktop: No such file or directory
Again I'm probably missing something simple and would be grateful for further advice
Jack

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #64515]: No such file or directory
> Date: Thu, 19 Mar 2009 11:02:41 +0000
>
> Your question #64515 on gnome-terminal in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515
>
> Floris Douw proposed the following answer:
> I had a look at apachefriends.org, and the file name you mention seems
> to be correct. I do not know how acquainted you are with the terminal,
> but I suppose you still know to which folder you have downloaded the
> file. As an example, in my case this is my download folder,
> “/home/floris/Downloads”; I would open a terminal, type “cd
> /home/floris/Downloads”, and then “sudo tar xvfz xampp-linux-1.7.tar.gz
> -C /opt”, this would install XAMPP. Notice the use of “sudo”; you need
> root access to install anything in “/opt”.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515
>
> You received this question notification because you are a direct
> subscriber of the question.

_________________________________________________________________
 25GB of FREE Online Storage – Find out more
http://clk.atdmt.com/UKM/go/134665320/direct/01/

Revision history for this message
FD (fdouw) said :
#8

Hi Jack,

I remember when I started using Linux—you are doing great ;-)

Anyway, I forgot to say that file names in Linux are case sensitive, hence it (probably) is “/home/jack/Desktop”.

A few basic commands that may come in handy:
 * cd <dir> – changes the directory you are in to <dir>,
 * ls – lists files and directories.
Also, you can use tab to expand any file names and double tab to get a list of possible file names if there is more than one option.

For a more extensive list, see: http://www.ss64.com/bash/

Revision history for this message
Jack Arrundale (j-arrundale) said :
#9

Sorry I should have said that I spotted that, tried the upper case D with the same result
Jack

> To: <email address hidden>
> From: <email address hidden>
> Subject: RE: [Question #64515]: No such file or directory
> Date: Thu, 19 Mar 2009 18:26:23 +0000
>
> Your question #64515 on gnome-terminal in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515
>
> Status: Open => Answered
>
> Floris Douw proposed the following answer:
> Hi Jack,
>
> I remember when I started using Linux—you are doing great ;-)
>
> Anyway, I forgot to say that file names in Linux are case sensitive,
> hence it (probably) is “/home/jack/Desktop”.
>
> A few basic commands that may come in handy:
> * cd <dir> – changes the directory you are in to <dir>,
> * ls – lists files and directories.
> Also, you can use tab to expand any file names and double tab to get a list of possible file names if there is more than one option.
>
> For a more extensive list, see: http://www.ss64.com/bash/
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515/+confirm?answer_id=7
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515
>
> You received this question notification because you are a direct
> subscriber of the question.

_________________________________________________________________
All your Twitter and other social updates in one place
http://clk.atdmt.com/UKM/go/137984870/direct/01/

Revision history for this message
Best FD (fdouw) said :
#10

…and I should have said that you seem to have forgotten to type a space in “cd/home/jack/desktop”; it should be “cd /home/jack/Desktop”. (The devil is in the details again…)

Revision history for this message
Jack Arrundale (j-arrundale) said :
#11

Thanks
That worked. I missed\ the space initially as the cd came at the end of a line! I will study all the information which you and Bhavani have given me and hope that some of it sticks particularly the list of terminal commands.
Thanks again
Jack

Revision history for this message
Jack Arrundale (j-arrundale) said :
#12

That worked seemy reply in the forum. Thanks again

> To: <email address hidden>
> From: <email address hidden>
> Subject: RE: [Question #64515]: No such file or directory
> Date: Thu, 19 Mar 2009 19:26:41 +0000
>
> Your question #64515 on gnome-terminal in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515
>
> Status: Open => Answered
>
> Floris Douw proposed the following answer:
> …and I should have said that you seem to have forgotten to type a space
> in “cd/home/jack/desktop”; it should be “cd /home/jack/Desktop”. (The
> devil is in the details again…)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515/+confirm?answer_id=9
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/64515
>
> You received this question notification because you are a direct
> subscriber of the question.

_________________________________________________________________
Free photo editing software from Windows Live . Try it now!
http://clk.atdmt.com/UKM/go/134665240/direct/01/