MySQL

Heinrich Venter heinrich@REDACTED
Fri Mar 11 07:31:29 CET 2005


Michael

I am using the ODBC driver with erlang at the moment.  Here is what I
have found works
I am assuming you are building OTP from source on Linux of some sort?

After doing the "configure --enable-odbc" you should edit the resulting
make file in the directory 
<OTP_SRC>/lib/odbc/c_src/i686-pc-linux-gnu/Makefile

I made the following changes:

I commented out the test for TYPE and forced "TYPEMARKER = "
#ifeq ($(TYPE),debug)
#TYPEMARKER = .debug
#else
TYPEMARKER =
#endif

I removed the checks for Solaris
MAKEFILE = makefiles/Makefile.unix.src
#ifeq ($(OTP_RELEASE),yes)
ifneq ($(BITS64),yes)
#ifeq ($(findstring solaris,$(TARGET)),solaris)
UNIX_TARGET = $(BINDIR)/odbcserver
EXE_TARGET = $(UNIX_TARGET)
#endif
endif
#endif
endif

Lastly I changed the ODBC library variables to what works on my RedHat
system
ODBCROOT = /usr
ODBCLDFLAGS = -L$(ODBCROOT)/lib
ODBCINCLUDE = $(ODBCROOT)/include

After doing a "make" I cd lib/odbc/c_src and run make again.

After this I do "make install"

It is great news that Ingela is updating the configure script!

-]-[einrich


Get LookForMe for business using CellFind
http://asp1.rocketseed.com/RocketSeed/mail/433a32353a313132373133353a33303639373a2d323a323138

This will take you to the Launchpad site for more info
http://asp1.rocketseed.com/RocketSeed/mail/433a32353a313132373133353a33303639373a2d323a333738
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050311/aadea6dd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MTk2LjMwLjc5LjE1NQ==
Type: image/gif
Size: 14964 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050311/aadea6dd/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MTk2LjMwLjc5LjE1NQ==
Type: image/gif
Size: 620 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050311/aadea6dd/attachment-0001.gif>


More information about the erlang-questions mailing list