Sublime Forum

Fedora 25 sublime text 3 install

#1

Hello, I’m not able to get sublime text 3 up and running on fedora 25. I’ve followed some other links online like: https://digitizor.com/install-sublime-text-editor-3-fedora-redhat/
however, no joy.

I get:
“/usr/local/bin/subl: line 2: [: ==: unary operator expected”

Any help greatly appreciated!

0 Likes

#2

Recently I switched to Fedora (F25) and ST3 works nicely, bit I did install it under $HOME. Can you try that?

Btw, which shell you use? Fish?

0 Likes

#3

I switched line 2 of the script to:

if [ "${1}" == "--help" ]; then

Which got rid of that message. You may want to get rid of the > /dev/null 2>&1 at the end of line 5, as the suppresses any error messages that might occur.

1 Like

#4

Thanks guys, I was just being a tool. I’m using zsh. It was just some naming in the install script. All good - thanks again for responding! https://gist.github.com/welshstew/4839921475fe85bd8fdd8b7343333f5c

0 Likes

#5

Here is what worked for me on Fedora 25 64-bit:

cd /usr/local
tar xjf <FROM SOMEWHERE>/sublime_text_3_build_3126_x64.tar.bz2
cd sublime_text_3
vim sublime_text.desktop

Set the correct path to the command in 3 places within the file. The path is: /usr/local/sublime_text_3/sublime_text

cp sublime_text.desktop /usr/share/applications
ln -s /usr/local/sublime_text_3/sublime_text /usr/local/bin

Cheers

0 Likes

#6

Hi guys. I m a rookie, i did what u told IAA but it opens 3059 version

0 Likes