Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I try to use drracket on Ubuntu 12.04, I get this error:

ffi-lib: couldn't open "libjpeg.so.62" (libjpeg.so.62: cannot open shared object file: No such file or directory)

 === context ===
/usr/lib/racket/collects/racket/draw/unsafe/jpeg.rkt: [running body]
/usr/lib/racket/collects/racket/draw/private/bitmap.rkt: [traversing imports]
/usr/lib/racket/collects/racket/draw/private/dc.rkt: [traversing imports]
/usr/lib/racket/collects/racket/draw/private/svg-dc.rkt: [traversing imports]
/usr/lib/racket/collects/racket/draw.rkt: [traversing imports]
/usr/lib/racket/collects/mred/private/kernel.rkt: [traversing imports]
/usr/lib/racket/collects/mred/private/const.rkt: [traversing imports]
/usr/lib/racket/collects/mred/private/check.rkt: [traversing imports]
/usr/lib/racket/collects/mred/private/mred.rkt: [traversing imports]
/usr/lib/racket/collects/mred/mred.rkt: [traversing imports]
/usr/lib/racket/collects/mred/main.rkt: [traversing imports]
/usr/lib/racket/collects/racket/gui/base.rkt: [traversing imports]
/usr/lib/racket/collects/drracket/drracket.rkt: [traversing imports]

How can I correct this error?

share|improve this question

2 Answers 2

please try

sudo apt-get install libjpeg62

and rerun the program.

By the way, I cannot reproduce this error!

share|improve this answer
1  
In my case, drracket was closing immediately after opening. Installing libjpeg resolved that issue. –  Moshe Sep 2 '12 at 13:47

If re-installing does not solve this error, try:

locate -i libjpeg

This will search all the instances of the library, so you can edit the necesary files with the right path.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.