12d25 Sublime Text 2 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Porting New Software

Porting New Software Having trouble or general questions about porting software to FreeBSD? Ask here.

Reply
 
Thread Tools Display Modes
  #1  
Old March 25th, 2012, 23:49
YouriBSD YouriBSD is offline
Junior Member
 
Join Date: Oct 2011
Posts: 27
Thanks: 3
Thanked 4 Times in 4 Posts
Default

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.

Last edited by DutchDaemon; March 26th, 2012 at 01:04. Reason: READ THE RULES -> http://forums.freebsd.org/showthread.php?t=11799
Reply With Quote
  #2  
Old March 26th, 2012, 01:21
YouriBSD YouriBSD is offline
Junior Member
 
Join Date: Oct 2011
Posts: 27
Thanks: 3
Thanked 4 Times in 4 Posts
Default

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.

Last edited by DutchDaemon; March 26th, 2012 at 18:51. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #3  
Old March 26th, 2012, 08:16
Cthulhux Cthulhux is offline
Junior Member
 
Join Date: Mar 2012
Posts: 26
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Have you considered asking Jon?
__________________
Linux is not the answer | there is no "F" in "GPL"
Reply With Quote
  #4  
Old March 26th, 2012, 17:26
YouriBSD YouriBSD is offline
Junior Member
 
Join Date: Oct 2011
Posts: 27
Thanks: 3
Thanked 4 Times in 4 Posts
Default

I'm still having compatibility issues with libstdc++, emulators/linux_base-f10 is outdated.

Last edited by DutchDaemon; March 27th, 2012 at 18:56.
Reply With Quote
  #5  
Old March 27th, 2012, 10:54
YouriBSD YouriBSD is offline
Junior Member
 
Join Date: Oct 2011
Posts: 27
Thanks: 3
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by Cthulhux View Post
Have you considered asking Jon?
Who is Jon?

Last edited by DutchDaemon; March 27th, 2012 at 12:25. Reason: No space before punctuation [ . , : ; ! ? ) ]
Reply With Quote
  #6  
Old March 27th, 2012, 13:47
Cthulhux Cthulhux is offline
Junior Member
 
Join Date: Mar 2012
Posts: 26
Thanks: 5
Thanked 0 Times in 0 Posts
Default

The guy who develops Sublime Text.
__________________
Linux is not the answer | there is no "F" in "GPL"
Reply With Quote
  #7  
Old March 27th, 2012, 17:20
YouriBSD YouriBSD is offline
Junior Member
 
Join Date: Oct 2011
Posts: 27
Thanks: 3
Thanked 4 Times in 4 Posts
Default

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 ]

Last edited by DutchDaemon; March 27th, 2012 at 18:57.
Reply With Quote
  #8  
Old March 27th, 2012, 17:21
Cthulhux Cthulhux is offline
Junior Member
 
Join Date: Mar 2012
Posts: 26
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Oh OK, didn't know that - sorry.
__________________
Linux is not the answer | there is no "F" in "GPL"
Reply With Quote
  #9  
Old March 31st, 2012, 10:25
Dereckson's Avatar
Dereckson Dereckson is offline
Junior Member
 
Join Date: Mar 2009
Location: Brussels, BE
Posts: 62
Thanks: 7
Thanked 15 Times in 7 Posts
Default

Could you give us a link to your current port Makefile, so we can have a better view on already solved dependency issues?
__________________
“It's only after we've lost everything that we're free to do anything.”,
Tyler Durden in Fight Club.

Ports I maintain: astro/astrometry, editors/komodo-ide, devel/p5-ReadLine-TTYtter, french/verbiste, www/woof, graphics/commons-utilities, net-p2p/ctcs, print/lgrind and textproc/p5-Text-CSV-Encoded.

Last edited by DutchDaemon; April 1st, 2012 at 01:14.
Reply With Quote
Reply

Tags
linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Any good text browsers? randux Off-Topic 5 July 26th, 2011 20:50
[Solved] No text -- only boxes DrJ GNOME 1 March 28th, 2010 05:50
text graphics lesha General 2 February 19th, 2010 17:43
text to speach paulfrottawa Installation and Maintenance of FreeBSD Ports or Packages 2 February 15th, 2010 16:05
Paste Text under *nix ??? setti General 14 July 28th, 2009 07:25


All times are GMT +1. The time now is 11:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0