ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Have gone here: Here
and downloaded as per instructions on the site xampp-linux-1.6.6.tar.gr (saved to disc).
I was then required to extract the downloaded archive to "/opt". I have tried using: pc xampp-linux-1.6.6.tar.gz /opt but failed at every attempt. Could someone help me out here please. I am running Linux Mint. Thanks in advance. DD
xampp-linux-1.6.6.tar.gz is located on my desktop. I have logged in as "root" and then typed:
tar xvfz xampp-linux-1.6.6.tar.gz -C /opt which resulted in the following output:
Tar: xampp-linux-1.6.6.tar.gz: Cannot open: No such file or directory
Obviously you need to be in the directory that the file resides in. Otherwise, how do you expect the file to be found (unless you supply an absolute path, of course)?
I have opened a terminal and once logged in as "root" i then typed "ls" then typed "cd Desktop"
There is your problem: you're on root's desktop. Just type pwd if you need confirmation. If you downloaded to the desktop of your regular user, you need to cd /home/username/Desktop
When i typed "ls" it listed all the directories: amsn_received, Documents, Music, Pictures, Templates, Desktop, Downloads, Network, Projects, Video. But when i typed "cd Desktop" daftdave@daftdave-desktop:-/Desktop$ appeared and nothing else. I thought the contents of Desktop would have been displayed. I didn't login as root while doing the above. Although when i opened the main menu and clicked on the Home Folder and then selected the Desktop directory it opened with all it's contents on display?
cd does not list anything, ls does. If you use ls after cd, that is when the contents are displayed. Also, if you are not certain where you are, use pwd (print working directory), it will tell you.
That's OK, that's just to indicate file type. Do you know that you can probably extract that file by simply right-clicking it and selecting "Extract"? You could then move it to /opt.
I did right-click on the file and select "Extract". So now when i open a terminal i can see the entry for "xampp-linux-1.6.6.tar.gz" which is in red text and then "LAMPP" which is in green text. Can i now install "LAMPP" by using:
& sudo apt-get install lampp?
Well no, because "apt-get install" installs packages (.deb) from online repositories (you may also be able to install .deb packages from optical media, or your local disk in this way but I'm not sure). apt-get will not know how to deal with .tar.gz files because they're not .deb packages. There should be a readme file or some kind of installation documentation either in the archive or at the location from which you obtained the archive. Usually green is used to show that files are executable, so you could try running the executable with "./LAMPP" and seeing what happens..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.