Linux: Installing Sublime Text Editor

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 🙂 )

https://www.centos.org/forums/viewtopic.php?t=11778

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
cd 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 🙂 )

http://www.iredmail.org/forum/topic7895-iredmail-support-install-fails-on-centos-7.html

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.

Example:

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:

http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/

And then copying sublime.desktop file to /home/<username>/Desktop

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s