I’m wanting to write a few Python programs, looking online for an editor (https://www.sitepoint.com/which-code-editors-do-pythonists-use/), I’ve decided to try Sublime Text.
Although you can download from the Sublime Text website (https://sublimetext.com/2), I wanted to download and install from the command line.
I started out by using these instructions (http://www.tecmint.com/install-sublime-text-editor-in-linux/), but, then got the following when trying to download:
bash: wget: command not found
Reviewing this link, I realized I did not have wget installed (would probably help 🙂 )
Once wget was installed, I was able to download the tar file to the root directory. I then issued the following command:
tar vxjf Sublime\ Text\ 2.0.2\ x64.tar.bz2
But then got the following error message:
tar: You must specify one of the `-Acdtrux’ or `–test-label’ options
Try `tar –help’ or `tar –usage’ for more information.
Checked a few things, but, couldn’t figure out what was going on. Ended up moving the file to the Downloads folder using:
mv “Sublime Text 2.0.2 x64.tar.bz2” Downloads
Re-running the tar command, I then received the following error message:
tar (child): bzip2: Cannot exec: 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
After looking online, I found the following and realized I don’t have bzip2 installed (again, would help 🙂 )
Once bzip2 installed successfully, I was able to follow the remaining instructions to get Sublime Text installed without issue.
One thing I did learn from this, the \ character is used to represent spaces in a file name.
Sublime Text 2.0.2 x64.tar.bz2
Referenced in the terminal as:
Sublime\ Text\ 2.0.2\ x64.tar.bz2
I also created a desktop shortcut using Step 4 in the following link:
And then copying sublime.desktop file to /home/<username>/Desktop