Re: edbi on 64 bit machines?
- Posted by egis Apr 25, 2012
- 4175 views
So it looks as if I could compile but there are some problems. Here is the compile listing:
tm22:/usr/share/euphoria/edbi/drivers/mysql # ../../../bin/euc -dll edbi_mysql.e Build directory: build-887075/ Translating code, pass: 1 2 3 4 generating Compiling with GCC Compiling 1% init-.c Compiling 6% edbi_mysql.c Compiling 9% main-.c Compiling 13% datetime.c Compiling 16% dll.c Compiling 19% error.c Compiling 22% machine.c Compiling 26% memconst.c Compiling 29% memory.c Compiling 32% types.c Compiling 36% get.c Compiling 39% io.c Compiling 42% text.c Compiling 45% convert.c Compiling 49% search.c Compiling 52% filesys.c Compiling 55% math.c Compiling 59% rand.c Compiling 62% sequence.c Compiling 65% sort.c Compiling 68% wildcard.c Compiling 72% pretty.c Compiling 75% serialize.c Compiling 78% scinot.c Compiling 81% map.c Compiling 85% eumem.c Compiling 88% primes.c Compiling 91% stats.c Compiling 95% info.c Compiling 98% url.c Linking 100% ../edbi_mysql.so
I then made a copy edbi_mysql.so to /usr/share/lib (it still exists in /usr/share/euphora/edbi/drivers/mysql/)
I then ran ldconfig
My edbi_mysql.e: constant lib_mysql file points to:
constant lib_mysql = open_dll({ "/usr/lib64/libmysqlclient.so.15.0.0",
Upon running my program I get:
tm22:/srv/www/htdocs/cgi # eui svgmap_test.ex /usr/share/euphoria/include/std/error.e:50 in procedure crash() Could not open driver as: /usr/share/euphoria/edbi/drivers/mysql/edbi_mysql.so /usr/share/euphoria/edbi/drivers/edbi_mysql.so edbi_mysql.so ... called from /usr/share/euphoria/include/std/../../edbi/edbi/edbi.e:334 in function open() ... called from /srv/www/htdocs/cgi/./db.e:7 in function open_db() ... called from /srv/www/htdocs/cgi/./svg.e:29 --> See ex.err
The permissions on edbi_mysql.so are open. I know the program works on 32 bit.
Any clues?
Thanks for all of your help!