artanis
[Top][All Lists]
Advanced

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

[Artanis] Troubling using a database


From: Joshua Branson
Subject: [Artanis] Troubling using a database
Date: Sat, 10 Mar 2018 10:52:59 -0800

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



reply via email to

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