drracket 在 ubuntu 12.04 上不起作用

drracket 在 ubuntu 12.04 上不起作用

当我尝试drracket在 Ubuntu 12.04 上使用时,出现此错误:

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]

我该如何纠正这个错误?

答案1

请尝试

sudo apt-get install libjpeg62

并重新运行该程序。

顺便说一句,我无法重现这个错误!

答案2

如果重新安装不能解决此错误,请尝试:

locate -i libjpeg

这将搜索库的所有实例,以便您可以使用正确的路径编辑必要的文件。

相关内容