Hello,

I have installed tntnet and tntdb on Ubuntu 12.04 using apt-get. Projects that 
do not use tntdb seem to work just fine, but I cannot get any database 
connections to work. For instance, the newsdb demo project will build, but will 
not run (sqlite or mysql). I decided to create an even simpler project (called 
db):

<%pre>
#include <tntdb/connection.h>
#include <tntdb/connect.h>
</%pre>
<%cpp>
tntdb::Connection conn = tntdb::connect("sqlite:mydb.db");
</%cpp>
<html>
 <head>
  <title>ecpp db webapp</title>
 </head>
 <body>
  <h1>ecpp db webapp</h1>
  <p>Hello world!</p>
 </body>
</html>

This project will build (after I add -ltntdb to the Makefile), but when I 
attempt to access it I get the following errors:

tntnet 2.0
2012-11-08 07:28:28.43380 [10418.140124704614208] INFO tntnet.listener - listen 
ip=0.0.0.0 port=8000
2012-11-08 07:28:28.43400 [10418.140124704614208] INFO tntnet.tntnet - create 5 
worker threads
2012-11-08 07:28:35.58744 [10418.140124671395584] INFO tntnet.worker - request 
GET /favicon.ico from client 10.3.1.23 user-Agent "Mozilla/5.0 (Macintosh; 
Intel Mac OS X 10_6_8) AppleWebKit/537.11 (KHTML, like Gecko) 
Chrome/23.0.1271.64 Safari/537.11" user ""
2012-11-08 07:28:35.58797 [10418.140124671395584] INFO tntnet.comploader - load 
library "db"
2012-11-08 07:28:35.58829 [10418.140124671395584] WARN tntnet.comploader - 
failed to load library "./db"
2012-11-08 07:28:35.58842 [10418.140124671395584] WARN tntnet.comploader - 
failed to load library "/usr/lib/tntnet/db"
2012-11-08 07:28:35.58874 [10418.140124671395584] WARN tntnet.comploader - 
failed to load library "db"
2012-11-08 07:28:35.58894 [10418.140124671395584] WARN tntnet.worker - library 
db not found
2012-11-08 07:28:35.58910 [10418.140124671395584] WARN tntnet.worker - 
http-Error: 404 Not Found

The file mydb.db does exist and it is in the same directory as the project. 
(Just to note, failure to load is also what happens with the newsdb demo 
project.) Any suggestions?

Thank you,

Damon

--------------------------
Damon Little
Assistant Curator of Bioinformatics
Cullman Program for Molecular Systematics
The New York Botanical Garden
Bronx, New York 10458-5126
U.S.A.
Tel: 718.817.8521



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to