[SQLGRASS] ODBC grass install: compile src/dbmi/drivers/odbc

Stefaan Lhermitte stefaan.lhermitte at agr.kuleuven.ac.be
Thu, 02 Sep 2004 10:56:35 +0200


This is a multi-part message in MIME format.
--------------030808030709070101050700
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Dear GRASSians,

I'm trying to install GRASS 5.3 in a cygwin environment. I specifically 
want to use the GRASS to connect to an extrenal DBMS (MySQL) via ODBC.
I manually compiled andinstallled Grass5.3 with the odbc feature 
(./configure --with-odbc --without-postgres and so on). When I open 
GRASS, it doesn't support the dbms drivers, since I get following error: 
"Error trying to read dbmscap file".

I checked the installation procedure for ODBC-GRASS 5.0 
(http://grass.itc.it/sqlgrass/odbc_grass_install.html). As stated there 
i dowloaded and compiles the unixODBC driver. I did not install the 
ODBC-Config, nor the Datamanager, since it was not necessary. It also 
states that I shoud have the GRASS-to-odbc-driver.
In my case the folder $GISBASE/driver/db is empty. As such I don't see 
the folder /odbc nor any related files. As indicated I tried to compile 
grass/src/libes/dbmi/drivers/odbc/. The INSTALL file in this folder 
states the following:

1. Download, compile, install and configure ODBC (http://www.unixodbc.org/)
2. Copy ODBC include files to /usr/include/odbc
3. Compile src/libes/dbmi/drivers/odbc
4. Add row for ODBC driver to dbmscap file

I did step 1. Strangely enough I don't have any files in 
usr/local/unixODBC/include so Step 2 is a problem. I don't know what i 
can do about it?

Secondly I have a problem with step 3. It states: Compile... but I don't 
see any configure nor make...
I might sound a stupid question but how do I compile 
src/libes/dbmi/drivers/odbc? I have no idea...

Thanx in advance,
Stefaan


--------------030808030709070101050700
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <DEFANGED_meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<DEFANGED_meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
<DEFANGED_meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
Dear GRASSians,<br>
<br>
I'm trying to install GRASS 5.3 in a cygwin environment. I specifically
want to use the GRASS to connect to an extrenal DBMS (MySQL) via ODBC.<br>
I manually compiled andinstallled Grass5.3 with the odbc feature
(./configure --with-odbc --without-postgres and so on). When I open
GRASS, it doesn't support the dbms drivers, since I get following
error: <i>"Error trying to read dbmscap file".<br>
</i><br>
I checked the installation procedure for ODBC-GRASS 5.0
(<a class="moz-txt-link-freetext"
 href="http://grass.itc.it/sqlgrass/odbc_grass_install.html">http://grass.itc.it/sqlgrass/odbc_grass_install.html</a>).
As stated there
i dowloaded and compiles the unixODBC driver. I did not install the
ODBC-Config, nor the Datamanager, since it was not necessary. It also
states that I shoud have the GRASS-to-odbc-driver. <br>
In my case the folder $GISBASE/driver/db is empty. As such I don't
see the folder /odbc nor any related files. As indicated I tried to
compile
grass/src/libes/dbmi/drivers/odbc/. The INSTALL file in this folder
states the following:<br>
<br>
1. Download, compile, install and configure ODBC
(<a class="moz-txt-link-freetext" href="http://www.unixodbc.org/">http://www.unixodbc.org/</a>)<br>
2. Copy ODBC include files to /usr/include/odbc<br>
3. Compile src/libes/dbmi/drivers/odbc<br>
4. Add row for ODBC driver to dbmscap file<br>
<br>
I did step 1. Strangely enough I don't have any files in
usr/local/unixODBC/include so Step 2 is a problem. I don't know what i
can do about it?<br>
<br>
Secondly I have a problem with step 3. It states: Compile... but I
don't see any configure nor make... <br>
I might sound a stupid question but how do I compile
src/libes/dbmi/drivers/odbc? I have no idea...<br>
<br>
Thanx in advance,<br>
Stefaan<br>
<br>
</body>
</html>

--------------030808030709070101050700--