artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Artanis] Troubling using a database


From: Nala Ginrut
Subject: Re: [Artanis] Troubling using a database
Date: Tue, 13 Mar 2018 15:42:57 +0800
User-agent: mu4e 1.0-alpha0; emacs 25.1.1

Hi Joshua!
I think guile-dbi/dbd should be installed before you install Artanis, or
you have to recompile Artanis project.
Now that you've installed guile-dbi/dbd, I think you just need to goto
Artanis directory, make clean, then rebuild it.

Feel free to report if you still failed according to my solution.

Best regards.


Joshua Branson writes:

> Hello,
>
> I'm trying to use artanis to set up a database connection, but I seem to be 
> having some issues installing libguile-dbi.
>
> Here's the file I'm trying to run:
>
> #!/usr/bin/guile -s
>
> !#
>
> (use-modules (artanis artanis))
> ;; remap "http://localhost:8080/hello"; show hello world
> (init-server)
> (get "/hello" (lambda () "hello world!"))
> ;; run the server
> (run #:port 8080)
>
>
> Here's the error I get:
>
> address@hidden artanis]$ ./hello-world.scm
> Loading /etc/artanis/artanis.conf...done.
> User wants to use Database, initializing...
> connection pools are initilizing...;;; Failed to autoload dbi-open in (dbi 
> dbi):
> ;;; In procedure dynamic-link: file: "libguile-dbi", message: "file not found"
> Backtrace:
>            9 (apply-smob/1 #<catch-closure 56180330ac20>)
> In ice-9/boot-9.scm:
>     705:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  7 (_ #(#(#<directory (guile-user) 5618033c0140>)))
> In ice-9/boot-9.scm:
>    2312:4  6 (save-module-excursion _)
>   3822:12  5 (_)
> In artanis/artanis.scm:
>     291:4  4 (run #:host _ #:port _ #:debug _ #:use-db? _ #:db-proto …)
> In artanis/db.scm:
>    201:13  3 (init-connection-pool)
> In ice-9/boot-9.scm:
>    222:17  2 (map1 (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 …))
> In artanis/db.scm:
>    158:14  1 (create-new-DB-conn)
>     99:34  0 (DB-do-conn! _)
>
> artanis/db.scm:99:34: In procedure DB-do-conn!:
> In procedure module-lookup: Unbound variable: dbi-open
>
>
> I'm running Parabala GNU/Linux on a Macbook 7,2.  I believe I followed the 
> manual to install both guile-dbi and guile-dbd.  I followed the directions 
> found here:  
> https://www.gnu.org/software/artanis/manual/manual.html#org16fd04d
>
> After untar-ing some of the provided source files my directory looks like:
>
> address@hidden artanis]$ ls
> artanis-0.2.3  artanis-latest.tar.bz2  guile-dbd-mysql-2.1.6.tar.gz  
> guile-dbi-2.1.6.tar.gz  guile-dbi-guile-dbd-mysql-2.1.6  
> guile-dbi-guile-dbi-2.1.6
>
>
> I went into each directory, ./configure && make install;  sudo make install;
>
>
> What might I be doing wrong?
>
> Thanks,
>
> Joshua


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]