Re: error installing ROOT

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 19 Mar 2008 08:21:16 +0100


That means that you changed the location of the mysql directory between the time you run configure and the time when you run make, or you have deleted the file mysql.h (or its parent directory) in your mysql installation.
Please rerun configure with a careful check of the place where you specify the mysql directory and send
the file config.status, config.log
and show the line when make fails when compiling the file TMySQLResult.cxx. In this line you should see a "-Ixxx" where xxx is the path for the mysql includes.

Rene Brun

suneel_at_puhep.res.in wrote:
> Hi All,
>
> I am trying to install ROOT version 5.16.00 on my LINUX laptop but the
> gmake command is failing with the following error:
>
> mysql/src/TMySQLResult.cxx
>
> In file included from mysql/src/TMySQLResult.cxx:12:
>
> include/TMySQLResult.h:25:19: error: mysql.h:
> No such file or directory
> include/TMySQLResult.h:35:
> error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
>
> include/TMySQLResult.h:35: error: expected ‘;’ before ‘*’ token
> include/TMySQLResult.h:36:
> error: ISO C++ forbids declaration of ‘MYSQL_FIELD’ with no type
> include/TMySQLResult.h:36:
> error: expected ‘;’ before ‘*’ token
> include/TMySQLRow.h:35:
> error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
> include/TMySQLRow.h:35: error:
> expected ‘;’ before ‘*’ token
> include/TMySQLRow.h:36: error:
> ‘MYSQL_ROW’ does not name a type
> mysql/src/TMySQLResult.cxx:
> In constructor ‘TMySQLResult::TMySQLResult(void*)’:
>
> mysql/src/TMySQLResult.cxx:23: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx:23:
> error: ‘MYSQL_RES’ was not declared in this scope
> mysql/src/TMySQLResult.cxx:23:
> error: expected primary-expression before ‘)’ token
> mysql/src/TMySQLResult.cxx:23:
> error: expected `;' before ‘result’
> mysql/src/TMySQLResult.cxx:24:
> error: ‘mysql_num_rows’ was not declared in this scope
> mysql/src/TMySQLResult.cxx:25:
> error: ‘fFieldInfo’ was not declared in this scope
> mysql/src/TMySQLResult.cxx: At global scope:
> mysql/src/TMySQLResult.cxx:19: warning: unused parameter ‘result’
> mysql/src/TMySQLResult.cxx: In destructor ‘virtual
> TMySQLResult::~TMySQLResult()’:
> mysql/src/TMySQLResult.cxx:33: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx: In member function ‘virtual void
> TMySQLResult::Close(const Option_t*)’:
> mysql/src/TMySQLResult.cxx:42: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx:45: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx:45: error: ‘mysql_free_result’ was not declared
> in this scope
> mysql/src/TMySQLResult.cxx:47: error: ‘fFieldInfo’ was not declared in
> this scope
> mysql/src/TMySQLResult.cxx: In member function ‘Bool_t
> TMySQLResult::IsValid(Int_t)’:
> mysql/src/TMySQLResult.cxx:56: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx: In member function ‘virtual Int_t
> TMySQLResult::GetFieldCount()’:
> mysql/src/TMySQLResult.cxx:72:
> error: ‘fResult’ was not declared in this scope
> mysql/src/TMySQLResult.cxx:76:
> error: ‘fResult’ was not declared in this scope
> mysql/src/TMySQLResult.cxx:76:
> error: ‘mysql_num_fields’ was not declared in this scope
> mysql/src/TMySQLResult.cxx: In member function ‘virtual const char*
> TMySQLResult::GetFieldName(Int_t)’:
> mysql/src/TMySQLResult.cxx:87: error: ‘fFieldInfo’ was not declared in
> this scope
> mysql/src/TMySQLResult.cxx:88: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx:88: error: ‘mysql_fetch_fields’ was not
> declared in this scope
> mysql/src/TMySQLResult.cxx:90: error: ‘fFieldInfo’ was not declared in
> this scope
> mysql/src/TMySQLResult.cxx:95: error: ‘fFieldInfo’ was not declared in
> this scope
> mysql/src/TMySQLResult.cxx: In member function ‘virtual TSQLRow*
> TMySQLResult::Next()’:
> mysql/src/TMySQLResult.cxx:104: error: ‘MYSQL_ROW’ was not declared in
> this scope
> mysql/src/TMySQLResult.cxx:104: error: expected `;' before ‘row’
> mysql/src/TMySQLResult.cxx:106: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx:110: error: ‘row’ was not declared in this scope
> mysql/src/TMySQLResult.cxx:110: error: ‘fResult’ was not declared in this
> scope
> mysql/src/TMySQLResult.cxx:110:
> error: ‘mysql_fetch_row’ was not declared in this scope
>
> gmake: *** [mysql/src/TMySQLResult.o] Error 1
>
>
> Any Ideas how can this problem be solved.
> Thanks in advance for your help.
> With Regards
> Suneel Dutt
>
>
Received on Wed Mar 19 2008 - 08:18:29 CET

This archive was generated by hypermail 2.2.0 : Wed Mar 19 2008 - 11:50:02 CET