0

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.

Mr coder
  • 103
  • 3

1 Answers1

1
  • 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

Avinash Raj
  • 78,556