LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem to setup (https://www.linuxquestions.org/questions/linux-software-2/problem-to-setup-4175582871/)

Huamin 06-22-2016 09:15 PM

Problem to setup
 
Hi,
Any advice to this?
[huamin@CentOS65x64 Downloads]$ tar -zxvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz -C /opt
tar (child): eclipse-java-luna-SR1-linux-gtk-x86_64.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
[huamin@CentOS65x64 Downloads]$

frankbell 06-22-2016 09:25 PM

Just a shot in the dark, but I would try the command without the -C /opt argument and see whether the file decompresses to the local directory, before I tried anything else.

Huamin 06-22-2016 09:32 PM

I still get
[huamin@CentOS65x64 Downloads]$ tar -zxvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz
tar (child): eclipse-java-luna-SR1-linux-gtk-x86_64.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
[huamin@CentOS65x64 Downloads]$

Emerson 06-22-2016 09:43 PM

Broken download? What is the size of this file? According to their website it is supposed to be 160,242,552 bytes.

Huamin 06-22-2016 10:07 PM

I re-do the download but I really get 46MB for that. Here is the place

http://www.eclipse.org/downloads/?osType=linux

I get the download.

Emerson 06-22-2016 10:12 PM

Try with wget
Code:

wget http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR1/eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz

Huamin 06-23-2016 12:13 AM

What to do, to the downloaded file below?
https://app.box.com/s/6bg8nhcgylpok07h2zgprh3mr6iraez4

Emerson 06-23-2016 06:07 AM

Delete partial downloads, use the file with size of 160,242,552 bytes. Rename it first, it has that long ugly name right now.

Chevron7 06-23-2016 07:43 AM

Try with the options in this order:
Code:

tar -xzvf
tar requires that the first option be one of the functions.

michaelk 06-23-2016 08:22 AM

Order does not matter except that -f requires an argument i.e. filename. tar is capable of determining compression type so you could just try:

tar -xvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz

However, I could download and untar the file without issues. The error "Cannot open: No such file or directory" would indicate the OP was not entering the file name correctly but I could not detect an error.

Are you typing the name or copying/pasting on the command line. If typing by hand try the later. If you are running a desktop have you tried to untar the file by clicking the name in the file browser?

Huamin 06-24-2016 01:46 AM

Hi,
Can you please help to problem encountered below?

[huamin@CentOS65x64 Downloads]$ ln -s /opt/eclipse/eclipse /usr/bin/eclipse
ln: creating symbolic link `/usr/bin/eclipse': File exists
[huamin@CentOS65x64 Downloads]$ rmdir /usr/bin/eclipse
rmdir: failed to remove `/usr/bin/eclipse': Permission denied
[huamin@CentOS65x64 Downloads]$ su
Password:
[root@CentOS65x64 Downloads]# rmdir /usr/bin/eclipse
rmdir: failed to remove `/usr/bin/eclipse': Not a directory
[root@CentOS65x64 Downloads]#

michaelk 06-24-2016 04:48 AM

Post the output
ls -l /usr/bin/eclipse

Huamin 06-27-2016 01:45 AM

FYI

[root@CentOS65x64 huamin]# ls -l /usr/bin/eclipse
-rwxr-xr-x. 1 root root 112 Oct 25 2011 /usr/bin/eclipse
[root@CentOS65x64 huamin]#

michaelk 06-27-2016 08:13 AM

A file already exists so a link can not be created.

You can not delete a file by using the rmdir command.

Huamin 06-28-2016 02:48 AM

Many thanks.

I put this
##nano /usr/share/applications/eclipse.desktop

within Terminal (but nothing happens), as I want to create Gnome desktop launcher. Please advise.


All times are GMT -5. The time now is 10:46 AM.