PDA

View Full Version : Sublime Text 2


YouriBSD
March 25th, 2012, 23:49
Hello everyone.

I wanted to use Sublime Text 2 on FreeBSD but it doesn't work. I got the 32 bits linux version on the official site. Linux compat layer is launched and emulators/linux_base-f10 is installed.

local# kldstat
Id Refs Address Size Name
1 7 0xc0400000 e9ece4 kernel
2 1 0xc6625000 29000 linux.ko


Then I got this first error:

youri | ~/Downloads/Sublime Text 2
ยป ./sublime_text
ELF interpreter /lib/ld-linux.so.2 not found
zsh: abort ./sublime_text


Then I used brandelf:

local# brandelf -t Linux sublime_text


And ldd sublime_text gives:


local# ldd sublime_text
sublime_text:
sublime_text: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by sublime_text)
sublime_text: /lib/libc.so.6: version `GLIBC_2.11' not found (required by sublime_text)
libgtk-x11-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found
libatk-1.0.so.0 => not found
libgio-2.0.so.0 => /lib/libgio-2.0.so.0 (0x2878a000)
libpangoft2-1.0.so.0 => not found
libpangocairo-1.0.so.0 => not found
libgdk_pixbuf-2.0.so.0 => not found
libcairo.so.2 => not found
libpng12.so.0 => not found
libpango-1.0.so.0 => not found
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x287ff000)
libfontconfig.so.1 => not found
libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0x28893000)
libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0x288d4000)
libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0x288d8000)
librt.so.1 => /lib/librt.so.1 (0x288dd000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x288e8000)
libpthread.so.0 => /lib/libpthread.so.0 (0x289cb000)
libdl.so.2 => /lib/libdl.so.2 (0x289e5000)
libutil.so.1 => /lib/libutil.so.1 (0x289ea000)
libm.so.6 => /lib/libm.so.6 (0x289ee000)
libX11.so.6 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x28a18000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x28b08000)
libc.so.6 => /lib/libc.so.6 (0x28b16000)
libselinux.so.1 => /lib/libselinux.so.1 (0x28c8e000)
/lib/ld-linux.so.2 (0x28765000)

As you can see some librries needed are not found but do exist in /usr/local/lib. So I used ln -s /usr/local/lib/libgtk-x11-2.0.so.0 /compat/linux/usr/lib and when I run ldd or the program itself, it returns:

error while loading shared libraries: /usr/lib/libgtk-x11-2.0.so.0: ELF file OS ABI invalid

Any ideas?

So I found out I had to install linux libraries from the ports but some are still missing:


libpixman-1.so.0 => not found
libgtk-1.2.so.0 => not found
libgdk-1.2.so.0 => not found
libgtk-x11-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found
libatk-1.0.so.0 => not found


Anyone got an idea what ports I have to install?

libgtk-1.2.so.0 => not found
libgdk-1.2.so.0 => not found

Installed with linux-gtk

Well,

libgtk-x11-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found
libatk-1.0.so.0 => not found

Installed with linux-gtk2.

YouriBSD
March 26th, 2012, 01:21
For libpixman-1.so.0 => not found
I had to remove graphics/linux-f10-cairo and get graphics/linux-cairo.

sublime_text: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by sublime_text)
sublime_text: /lib/libc.so.6: version `GLIBC_2.11' not found (required by sublime_text)

For that I needed to install red hat 9 compat-libstdc++ rpm package and its dependencies. Lots of stuff to install for this editor which should be fully ported to FreeBSD.

Cthulhux
March 26th, 2012, 08:16
Have you considered asking Jon?

YouriBSD
March 26th, 2012, 17:26
I'm still having compatibility issues with libstdc++, emulators/linux_base-f10 is outdated.

YouriBSD
March 27th, 2012, 10:54
Have you considered asking Jon?

Who is Jon?

Cthulhux
March 27th, 2012, 13:47
The guy who develops Sublime Text.

YouriBSD
March 27th, 2012, 17:20
Other FreeBSD users have already asked him. No answers.
DutchDaemon, thanks for correcting my posts but
lang/libstdc++_stldoc_4.2.2, is wrong I was talking about the linux version :).

[fixed, DD ]

Cthulhux
March 27th, 2012, 17:21
Oh OK, didn't know that - sorry. :)

Dereckson
March 31st, 2012, 10:25
Could you give us a link to your current port Makefile, so we can have a better view on already solved dependency issues?