[racket] can't run drracket in xubuntu 12.04

From: Bill Markmann (bmarkmann at gmail.com)
Date: Sun Feb 19 11:25:55 EST 2012

I haven't run into that with DrRacket under xubuntu, but two things to
check:

- if you do a 'sudo apt-get install -s libjpeg'... what is the response?
- cd into /usr/lib and do 'ls -l *.jpeg*' and see what you get; mine (under
xubuntu) looks like:

bill at cheese:/usr/lib$ ls -l *jpeg*
-rw-r--r-- 1 root root 223014 2010-05-09 12:24 libjpeg.a
-rw-r--r-- 1 root root    941 2010-05-09 12:24 libjpeg.la
lrwxrwxrwx 1 root root     17 2011-11-17 13:07 libjpeg.so ->
libjpeg.so.62.0.0
lrwxrwxrwx 1 root root     17 2011-03-11 07:23 libjpeg.so.62 ->
libjpeg.so.62.0.0
-rw-r--r-- 1 root root 146032 2010-05-09 12:24 libjpeg.so.62.0.0
lrwxrwxrwx 1 root root     16 2011-04-04 22:13 libjpeg.so.8 ->
libjpeg.so.8.0.2
-rw-r--r-- 1 root root 231640 2010-05-20 19:52 libjpeg.so.8.0.2
-rw-r--r-- 1 root root 132632 2009-04-30 02:24 libopenjpeg-2.1.3.0.so
lrwxrwxrwx 1 root root     22 2011-04-09 11:57 libopenjpeg.so.2 ->
libopenjpeg-2.1.3.0.so

If you have libjpeg installed (check the first step), then it's very likely
your symlinks under /usr/lib are screwy for some reason... if that's the
case fixing without breaking other stuff is the trick (my guess is you'll
just need to do 'sudo ln -s ./libjpeg.so.62.0.0 ./libjpeg.so.62' in that
directory, but that's just a guess....  I've never fully understood the
logic behind how library versioned / named-linked are supposed to work, but
tinkering around will either lead you to success or an unusable system...
:-)

On Sun, Feb 19, 2012 at 10:44 AM, rrandom <emanonhere at gmail.com> wrote:

> i can't run drracket in xubuntu 12.04.
> when i typed drracket in terminal,this message showed:
>
> rrandom at rrandom-ThinkPad-Edge:~$ drracket
> ffi-lib: couldn't open "libjpeg.so.62" (libjpeg.so.62: cannot open
> shared object file: No such file or directory)
>
> === context ===
> /usr/share/racket/collects/racket/draw/unsafe/jpeg.rkt: [running body]
> /usr/share/racket/collects/racket/draw/private/bitmap.rkt: [traversing
> imports]
> /usr/share/racket/collects/racket/draw/private/dc.rkt: [traversing imports]
> /usr/share/racket/collects/racket/draw/private/svg-dc.rkt: [traversing
> imports]
> /usr/share/racket/collects/racket/draw.rkt: [traversing imports]
> /usr/share/racket/collects/mred/private/kernel.rkt: [traversing imports]
> /usr/share/racket/collects/mred/private/const.rkt: [traversing imports]
> /usr/share/racket/collects/mred/private/check.rkt: [traversing imports]
> /usr/share/racket/collects/mred/private/mred.rkt: [traversing imports]
> /usr/share/racket/collects/mred/mred.rkt: [traversing imports]
> /usr/share/racket/collects/mred/main.rkt: [traversing imports]
> /usr/share/racket/collects/racket/gui/base.rkt: [traversing imports]
> /usr/share/racket/collects/drracket/drracket.rkt: [traversing imports]
>
>
> can anybody help me?
>
>
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120219/3330e710/attachment.html>

Posted on the users mailing list.