LinuxQuestions.org
Help answer threads with 0 replies.
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 05-05-2009, 09:43 PM   #1
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Rep: Reputation: 0
install error for xampp tar package


I get this error when trying to install package to /opt directory
root@vipjag2-laptop:/home/vipjag2# tar xvfz xampp-linux-1.7.1.tar.gz -C /opt
tar: xampp-linux-1.7.1.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
the tar package is located on my desktop in ubuntu intrepid. any ideas?
 
Old 05-06-2009, 12:07 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,910

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
tar: xampp-linux-1.7.1.tar.gz: Cannot open: No such file or directory
Since you're running tar as root it's not a permissions problem, so it looks like the file you want to extract is not in the current directory.
 
Old 05-06-2009, 12:16 AM   #3
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,698

Rep: Reputation: Disabled
Quote:
Originally Posted by vipjag2 View Post
I get this error when trying to install package to /opt directory
root@vipjag2-laptop:/home/vipjag2# tar xvfz xampp-linux-1.7.1.tar.gz -C /opt
tar: xampp-linux-1.7.1.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
the tar package is located on my desktop in ubuntu intrepid. any ideas?
Bathory is correct. You must run tar from the same directory that your tarball is in or else provide the full path to that tarball. You ran the tar program from you home directory
Code:
/home/vipjag2/
but your tarball (according to what you wrote) is in
Code:
/home/vipjag2/Desktop/
So you need to run tar from that folder. That's your problem.
cheers,
jdk
 
Old 05-06-2009, 12:29 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The order of options is important - make sure the f option preceeds the filename, so try

tar xvzf xampp-linux-1.7.1.tar.gz -C /opt
 
Old 05-08-2009, 08:58 AM   #5
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Original Poster
Rep: Reputation: 0
install error for xampp tar package

I got the tar package installed in the /opt directory but I get this error when I try to start lampp.

root@vipjag2-laptop:/home/vipjag2# /opt/lampp/lampp start
bash: /opt/lampp/lampp: No such file or directory

hpw do I change to the lampp directory to run start?
Thanks for your earlier help.

Last edited by vipjag2; 05-08-2009 at 09:39 AM. Reason: new info, typo
 
Old 05-08-2009, 09:36 AM   #6
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,698

Rep: Reputation: Disabled
Quote:
Originally Posted by vipjag2 View Post
how do I change the directory to the desktop to install tar package? Thanks for your earlier help.
In a terminal type:
Code:
cd /home/vipjag2/Desktop
then type
Code:
tar zxvf xampp-linux-1.7.1.tar.gz
the follow the instructions of the tarball.
cheers,
jdk
 
Old 05-08-2009, 09:55 AM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,910

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
What is the output of:
Code:
ls -l /opt/lampp
 
Old 05-10-2009, 08:43 PM   #8
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Original Poster
Rep: Reputation: 0
install error for xampp tar package

bathory the output i get is:
root@vipjag2-laptop:/home/vipjag2# ls -l /opt/lampp
ls: cannot access /opt/lampp: No such file or directory
 
Old 05-10-2009, 09:00 PM   #9
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Original Poster
Rep: Reputation: 0
install error for xampp tar package

bathory I changed to the /opt/lampp directory and found it was empty so I extracted the tarball to that directory and started the lampp file and it started this time! Thanks for everyone's help. Consider this thread solved.
 
  


Reply

Tags
install, xampp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 install sendmail tar package on redhat 9 abidch Red Hat 3 09-07-2006 05:30 AM
Install tar package jojojo Linux - Newbie 3 05-25-2006 02:15 AM
install srgp.tar.z package csst0136 Linux - Software 6 10-22-2005 06:25 PM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 11:58 AM
Install HCF driver from TAR package snowbaby Linux - Newbie 4 05-02-2002 01:18 AM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration