【问题标题】:Can't get guile-gnome to work不能让 guile-gnome 工作
【发布时间】:2014-11-30 10:08:24
【问题描述】:

我正在尝试让 guile-gnome 与安装在我机器上的 Guile 一起工作。我已经根据the instructions here 下载并构建了 guile-gnome,但是无论我给它什么前缀,我似乎永远无法执行sample GUI programs 之一。我应该安装什么前缀?作为记录,我目前来自 Guile 顶层的 %load-path

$1 = ("/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile")

编辑:我在 Manjaro GNU/Linux 上,使用 Guile 2.0.11,我从我发布的链接中列出的第一个示例程序中得到的错误消息是:

;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/koz/Documents/Programming/hello.scm
;;; WARNING: compilation of /home/koz/Documents/Programming/hello.scm failed:
;;; ERROR: no code for module (gnome gobject)
Backtrace:
In ice-9/boot-9.scm:
 157: 17 [catch #t #<catch-closure 23c4c00> ...]
In unknown file:
   ?: 16 [apply-smob/1 #<catch-closure 23c4c00>]
In ice-9/boot-9.scm:
  63: 15 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 14 [eval # #]
In ice-9/boot-9.scm:
2401: 13 [save-module-excursion #<procedure 23e1a00 at ice-9/boot-9.scm:4045:3 ()>]
4052: 12 [#<procedure 23e1a00 at ice-9/boot-9.scm:4045:3 ()>]
1724: 11 [%start-stack load-stack ...]
1729: 10 [#<procedure 289cd80 ()>]
In unknown file:
   ?: 9 [primitive-load "/home/koz/Documents/Programming/hello.scm"]
In ice-9/eval.scm:
 505: 8 [#<procedure 22946a0 at ice-9/eval.scm:499:4 (exp)> (use-modules # # #)]
In ice-9/psyntax.scm:
1106: 7 [expand-top-sequence ((use-modules (oop goops) (gnome gobject) ...)) () ...]
 989: 6 [scan ((use-modules (oop goops) (gnome gobject) ...)) () ...]
 279: 5 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
In ice-9/boot-9.scm:
3597: 4 [process-use-modules (((oop goops)) ((gnome gobject)) ((gnome gtk)))]
 700: 3 [map #<procedure 23510c0 at ice-9/boot-9.scm:3597:25 (mif-args)> (# # #)]
3598: 2 [#<procedure 23510c0 at ice-9/boot-9.scm:3597:25 (mif-args)> (#)]
2867: 1 [resolve-interface (gnome gobject) #:select ...]
In unknown file:
   ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnome gobject)) #f]

ERROR: In procedure scm-error:
ERROR: no code for module (gnome gobject)

【问题讨论】:

  • 1.你在什么操作系统和发行版上? 2. 你使用的是什么版本的 Guile? 3. 当您尝试运行示例程序时会发生什么?
  • @ChrisJester-Young:将您要​​求的信息添加到原始帖子的编辑中。
  • 我更希望你会说 Ubuntu 或 Debian,因为我手头有这些。 :-P 无论如何,你的gnome/gobject.go 文件在哪里?需要将其顶级目录添加到您的GUILE_LOAD_PATH
  • 我尝试运行find / -name 'gobject.go',但一无所获,尽管我确实安装了 Gtk(因为我可以用它从 C 编译东西)。
  • 嗯,多么奇怪。也许make install 没有安装.go 文件。 gobject.scm 呢?

标签: gnome guile


【解决方案1】:

好的,我终于让它在我的 Ubuntu 14.04 系统上运行。我使用了--prefix=/usr/local,所以这是我必须使用的 Guile 命令:

LD_LIBRARY_PATH=/usr/local/lib/guile-gnome-2 guile -L /usr/local/share/guile-gnome-2

由于(来自您的 cmets)看来您正在使用 --prefix=/usr,您可能不得不使用:

LD_LIBRARY_PATH=/usr/lib/guile-gnome-2 guile -L /usr/share/guile-gnome-2

【讨论】:

    猜你喜欢
    • 2017-02-18
    • 2014-04-05
    • 2012-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-01
    • 2016-01-09
    相关资源
    最近更新 更多