无法在 lubuntu 上运行 DrRacket GUI

无法在 lubuntu 上运行 DrRacket GUI

我从官方网站安装了 DrRacket,它为我创建了一个可执行文件名为 gracket 的文件(在 bin 内),我认为它是 DrRacket 的 GUI 版本,但是当我执行它时它什么也不做。(它说了一些关于缺少文件的信息:libjpeg.so.62libpng.so

我怎样才能让它运行?

Lubuntu 16.10 DrRacket 1.5.3

代码:

poo@poo-1015PE:~/racket/bin$ ls
drracket      mred-text  mztext      plt-help        racket     slatex
gracket       mzc        pdf-slatex  plt-r5rs        raco       slideshow
gracket-text  mzpp       planet      plt-r6rs        scribble   swindle
mred          mzscheme   plt-games   plt-web-server  setup-plt  tex2page
poo@poo-1015PE:~/racket/bin$ ./gracket
ffi-lib: couldn't open "libjpeg.so.62" (libjpeg.so.62: cannot open shared object file: No such file or directory)

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

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

 === context ===
/home/poo/racket/collects/racket/private/more-scheme.rkt:166:2: select-handler/no-breaks
/home/poo/racket/collects/racket/draw/unsafe/png.rkt: [running body]
/home/poo/racket/collects/racket/draw/private/bitmap.rkt: [traversing imports]
/home/poo/racket/collects/racket/draw/private/dc.rkt: [traversing imports]
/home/poo/racket/collects/racket/draw/private/svg-dc.rkt: [traversing imports]
/home/poo/racket/collects/racket/draw.rkt: [traversing imports]
/home/poo/racket/collects/mred/private/kernel.rkt: [traversing imports]
/home/poo/racket/collects/mred/private/const.rkt: [traversing imports]
/home/poo/racket/collects/mred/private/check.rkt: [traversing imports]
/home/poo/racket/collects/mred/private/mred.rkt: [traversing imports]
/home/poo/racket/collects/mred/mred.rkt: [traversing imports]

答案1

缺少的库文件libpng.solibjpeg.so.62是两个包libpng-dev和的一部分libjpeg62。您应该能够通过运行来安装它们

sudo apt install libpng-dev libjpeg62

相关内容