2

After installing Sublime Text 3 on Ubuntu 14.04 by coping the extracted files to /opt, I tried running Sublime Text using ./sublime_text.

However it is giving an error No such file or directory when though ls tells us that it exists! What's going on?

x@x-ubuntu:/opt/sublime_text_3$ ls -l
total 11660
-rw-rw-r-- 1 x x    4696 Dec 16 22:28 changelog.txt
-rwxrwxr-x 1 x x  171056 Dec 16 22:28 crash_reporter
drwxrwxr-x 7 x x    4096 Dec 16 22:28 Icon
drwxrwxr-x 2 x x    4096 Dec 16 22:28 Packages
-rwxrwxr-x 1 x x 4172952 Dec 16 22:28 plugin_host
-rw-rw-r-- 1 x x 2582934 Dec 16 22:28 python3.3.zip
-rw-rw-r-- 1 x x   18883 Dec 16 22:28 sublime_plugin.py
-rw-rw-r-- 1 x x   30672 Dec 16 22:28 sublime.py
-rwxrwxrwx 1 x x 4932736 Dec 21 21:57 sublime_text
-rw-rw-r-- 1 x x     532 Dec 16 22:28 sublime_text.desktop

x@x-ubuntu:/opt/sublime_text_3$ ./sublime_text
bash: ./sublime_text: No such file or directory
6
  • is sublime_text a script file? Apr 23, 2014 at 8:11
  • Run this command bash sublime_text Apr 23, 2014 at 8:17
  • Please specify what extracted files you're talking about. I assume you downloaded this but please clarify. Is there any particular reason you did not use the .deb file instead? I just tried and cannot reproduce this. What happens if you try file ./sublime_text?
    – terdon
    Apr 23, 2014 at 11:22
  • post the output of file sublime_text Apr 24, 2014 at 13:16
  • Yes it was a 32bit binary being run in 64 bit Ubuntu
    – Nyxynyx
    Apr 24, 2014 at 13:36

1 Answer 1

1

You are getting this error because you are trying to run a 32-bit binary on a 64-bit system. If you download the proper package for your system, it should work. If you don't know if your computer is 32-bit or 64-bit, try running

getconf LONG_BIT

(actually this checks if you're running 32-bit or 64-bit Ubuntu, to actually check if your hardware is 32-bit or 64-bit run:

grep -o -w 'lm' /proc/cpuinfo | sort u

and if one of the flags listed is 'lm' you have a 64-bit processor.)

1
  • Nice first answer!
    – cat
    Jan 23, 2016 at 1:46

Not the answer you're looking for? Browse other questions tagged .