* Guile cannot find libcurl
@ 2024-01-31 18:24 Sascha Ziemann
2024-01-31 22:07 ` Ricardo Wurmus
0 siblings, 1 reply; 2+ messages in thread
From: Sascha Ziemann @ 2024-01-31 18:24 UTC (permalink / raw)
To: Guile User
I tried to install akku, but Guile fails to load libcurl. I have no idea
why. Can anybody imagine what is going wrong here?
$ akku init nix
WARNING: (guile-user): imported module (rnrs) overrides core binding
`newline'
WARNING: (guile-user): imported module (rnrs) overrides core binding
`display'
WARNING: (guile-user): imported module (rnrs) overrides core binding `error'
WARNING: (guile-user): imported module (rnrs) overrides core binding `read'
WARNING: (guile-user): imported module (rnrs) overrides core binding `map'
[info] Adding chez-srfi@>=0.0.0-akku <1.0.0 to nix/Akku.manifest...
[info] Created a draft manifest in nix/Akku.manifest
To start developing in the new project, type this in your shell:
cd nix
akku install
.akku/env
Some implementations may require small adjustments to run R6RS programs
(e.g.
guile -x .guile.sls -x .sls). See the manual for your implementation.
$ cd nix
$ akku install
WARNING: (guile-user): imported module (rnrs) overrides core binding
`newline'
WARNING: (guile-user): imported module (rnrs) overrides core binding
`display'
WARNING: (guile-user): imported module (rnrs) overrides core binding `error'
WARNING: (guile-user): imported module (rnrs) overrides core binding `read'
WARNING: (guile-user): imported module (rnrs) overrides core binding `map'
[info] Solving dependencies...
[info] Locked chez-srfi v0.0.0-akku.181.7879b52
[info] Wrote Akku.lock
[info] Fetching chez-srfi
[info] Downloading
https://archive.akkuscm.org/archive/pkg/c/chez-srfi_0.0.0-akku.181.7879b52_repack.tar.xz
Backtrace:
12 (primitive-load "/usr/local/bin/akku")
In ice-9/eval.scm:
619:8 11 (_ #(#(#<directory (guile-user) 7f9e62512c80>) () ()))
In ice-9/boot-9.scm:
260:13 10 (for-each #<procedure fetch-project (project)> (#<proj…>))
In akku/lib/fetch.scm:
186:15 9 (fetch-project #<project name: "chez-srfi" packages: #f…>)
In ice-9/ports.scm:
433:17 8 (call-with-port #<output: /home/szi/.cache/akku/chez-s…> …)
In akku/private/http.scm:
163:22 7 (_ #<output: /home/szi/.cache/akku/chez-srfi-f002bc7fc6…>)
94:8 6 (_ #<http-request method: get url: "https://archive.akk…>)
In ice-9/boot-9.scm:
1752:10 5 (with-exception-handler _ _ #:unwind? _ # _)
In akku/private/http.scm:
110:36 4 (_ _)
In unknown file:
3 (dynamic-link "libcurl.so")
In system/foreign-library.scm:
190:25 2 (load-foreign-library _ #:extensions _ # _ #:search-path …)
In unknown file:
1 (dlopen "libcurl.so" 1)
In ice-9/boot-9.scm:
1685:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure dlopen: file "libcurl.so", message "libcurl.so: cannot open
shared object file: No such file or directory"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Guile cannot find libcurl
2024-01-31 18:24 Guile cannot find libcurl Sascha Ziemann
@ 2024-01-31 22:07 ` Ricardo Wurmus
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2024-01-31 22:07 UTC (permalink / raw)
To: Sascha Ziemann; +Cc: guile-user
Sascha Ziemann <ceving@gmail.com> writes:
> [info] Downloading
> https://archive.akkuscm.org/archive/pkg/c/chez-srfi_0.0.0-akku.181.7879b52_repack.tar.xz
> Backtrace:
> 12 (primitive-load "/usr/local/bin/akku")
> In ice-9/eval.scm:
> 619:8 11 (_ #(#(#<directory (guile-user) 7f9e62512c80>) () ()))
> In ice-9/boot-9.scm:
> 260:13 10 (for-each #<procedure fetch-project (project)> (#<proj…>))
> In akku/lib/fetch.scm:
> 186:15 9 (fetch-project #<project name: "chez-srfi" packages: #f…>)
> In ice-9/ports.scm:
> 433:17 8 (call-with-port #<output: /home/szi/.cache/akku/chez-s…> …)
> In akku/private/http.scm:
> 163:22 7 (_ #<output: /home/szi/.cache/akku/chez-srfi-f002bc7fc6…>)
> 94:8 6 (_ #<http-request method: get url: "https://archive.akk…>)
> In ice-9/boot-9.scm:
> 1752:10 5 (with-exception-handler _ _ #:unwind? _ # _)
> In akku/private/http.scm:
> 110:36 4 (_ _)
> In unknown file:
> 3 (dynamic-link "libcurl.so")
> In system/foreign-library.scm:
> 190:25 2 (load-foreign-library _ #:extensions _ # _ #:search-path …)
> In unknown file:
> 1 (dlopen "libcurl.so" 1)
> In ice-9/boot-9.scm:
> 1685:16 0 (raise-exception _ #:continuable? _)
You may need to add the directory containing libcurl.so to LD_LIBRARY_PATH.
In Guix we usually patch dynamic-link instances to refer to the absolute
file name of the .so file.
--
Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-31 22:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 18:24 Guile cannot find libcurl Sascha Ziemann
2024-01-31 22:07 ` Ricardo Wurmus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).