I am following this article for installing Eclipse in my linux system. How to install Eclipse?

  1. i extracted the eclipse.tar.gz
  2. sudo -i
  3. cp -r eclipse /opt

in the 3rd step i am getting this error.

cp: cannot stat `eclipse': No such file or directory

the real name of the tar file was eclipse-standard-kepler-SR1-linux-gtk.tar.gz which i renamed to eclipse.tar.gz

what i am doing wrong?thanks in advance.

  • post the real eclipse.tar.gz file name. – Avinash Raj Jan 18 '14 at 5:07
  • eclipse-standard-kepler-SR1-linux-gtk.tar.gz – Mr coder Jan 18 '14 at 5:08
  • post the output of ls | grep eclipse. – Avinash Raj Jan 18 '14 at 5:13
  • its giving no output – Mr coder Jan 18 '14 at 5:16
  • Try exit and then ls | grep eclipse. – Avinash Raj Jan 18 '14 at 5:16
  • Exit out of the root by running exit command.

  • Then run,

    sudo cp -r eclipse /opt
  • After that,login into root account by,

    sudo -i
  • Then follow from the 4th step in this.

This is because after you logged in as root by running sudo -i command,the copy command cp searches for eclipse directory inside the /root folder.But you actually extracted eclipse into the /home/$USER folder.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.