Home Download Buy Blog Forum Support

Startup problems (error loading packages) on fresh install

Startup problems (error loading packages) on fresh install

Postby jmansour on Wed Jan 09, 2013 2:03 pm

Hi,

I'm getting some wierd errors when starting Sublime Text (latest Version 2.0.1, 64 bit Linux). In the console:
'import site' failed; use -v for traceback

and then a popup:
Error loading syntax file "Packages/Text/Plain text.tmLanguage": Error parsing plist xml: Failed to open file In file "Packages/Text/Plain text.tmLanguage"

and the Window is all glitchy with no menubar and invisible tabs.

I have to say that I'm trying to run ST in an unusual configuration. I have CentOS 5.8 at work, under which it usually doesn't start. So I've compiled the glibc (2.16.0) and the whole gtk+ stack (gtk+2.24.13), and start it via ld-linux (so it picks up the correct glibc):
Code: Select all
LANG=C LD_LIBRARY_PATH=$HOME/software/glibc-2.16.0/lib:$HOME/software/glibc-2.16.0/lib64:/lib64:/lib:/usr/lib  $HOME/software/glibc-2.16.0/lib/ld-linux-x86-64.so.2  ./sublime_text


This looks a bit wierd, but it works, and I can get various programs to run. However, I'm assuming there is a problem with the builtin python - my system is lacking some library that it needs to process the plugins. Do you have any idea what could be missing, or what I could try next?

It would be really cool if I could get this to work. There is quite some demand for running ST on older Linuxes (see the UserEcho site), as many of us are stuck with them at work.

By the way, the following people also get the second error message (on Windows XP):
viewtopic.php?f=3&t=7138&p=30288&hilit=error+parsing+plist+xml#p30288
viewtopic.php?f=3&t=6797&p=28947&hilit=error+parsing+plist+xml#p28947

thanks,
Jason
jmansour
 
Posts: 2
Joined: Wed Jan 09, 2013 1:47 pm

Re: Startup problems (error loading packages) on fresh install

Postby jmansour on Wed Jan 09, 2013 3:01 pm

Nevermind, figured it out. The way I was starting ST was confusing it. I think it mistook the dynamic linker ld-linux.so for itself, and then looked for it's files in $HOME/software/glibc-2.16.0/lib (found that using strace). The dirty solution was to link all of STs files into that directory:
Code: Select all
for file in *; do ln -s "$PWD/$file" $HOME/jmansour/software/glibc-2.16.0/lib -f; done


Now it seems to run fine. No glitches and nothing. I'll test it a bit more, and if it doesn't break anything, I'll probably release the binaries if someone else wants to use them.

There are just a couple of obstacles left:
1) I'd like it to work without the link trick. I guess I'll have to write some small wrapper that starts sublime_text
2) I'm not sure my libraries would work on other computers with different paths, have to try that out.
3) Trim it down to only the neccessary libs, and package it nicely :-)
Attachments
Screenshot-Hooray! • - Sublime Text 2 (UNREGISTERED).png
Screenshot-Hooray! • - Sublime Text 2 (UNREGISTERED).png (25.58 KiB) Viewed 443 times
jmansour
 
Posts: 2
Joined: Wed Jan 09, 2013 1:47 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 12 guests