1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sublime Text 2

Discussion in 'Porting New Software' started by YouriBSD, Mar 25, 2012.

  1. YouriBSD

    YouriBSD New Member

    Messages:
    27
    Thanks Received:
    4
    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.

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


    Then I got this first error:

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


    Then I used brandelf:

    Code:
    local# brandelf -t Linux sublime_text
    


    And ldd sublime_text gives:


    Code:
    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:

    Code:
    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:


    Code:
    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?

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


    Installed with linux-gtk

    Well,
    Code:
    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.
     
  2. YouriBSD

    YouriBSD New Member

    Messages:
    27
    Thanks Received:
    4
    For
    Code:
    libpixman-1.so.0 => not found

    I had to remove graphics/linux-f10-cairo and get graphics/linux-cairo.

    Code:
    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.
     
  3. Cthulhux

    Cthulhux New Member

    Messages:
    54
    Thanks Received:
    0
    Have you considered asking Jon?
     
  4. YouriBSD

    YouriBSD New Member

    Messages:
    27
    Thanks Received:
    4
  5. YouriBSD

    YouriBSD New Member

    Messages:
    27
    Thanks Received:
    4
    Who is Jon?
     
  6. Cthulhux

    Cthulhux New Member

    Messages:
    54
    Thanks Received:
    0
    The guy who develops Sublime Text.
     
  7. YouriBSD

    YouriBSD New Member

    Messages:
    27
    Thanks Received:
    4
    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 ]
     
  8. Cthulhux

    Cthulhux New Member

    Messages:
    54
    Thanks Received:
    0
    Oh OK, didn't know that - sorry. :)
     
  9. Dereckson

    Dereckson New Member

    Messages:
    63
    Thanks Received:
    15
    Could you give us a link to your current port Makefile, so we can have a better view on already solved dependency issues?
     
  10. lockdoc

    lockdoc New Member

    Messages:
    124
    Thanks Received:
    6