[Clas_offline] mysql.h
Paul Mattione
pmatt at jlab.org
Wed Feb 12 13:02:52 EST 2014
If this isn't being done already, when a user has built a working, vetted version of the CLAS software from a previous experiment on CentOS 6.2, perhaps we should submit our environment/code/build-instructions to the offline group. Then they could make this build themselves in /group/clas/builds/.
This would allow the collaboration to have centrally located versions of validated software for previous experiments (e.g. for simulations, in case need to recook, etc.), instead of the current model of each person trying to fend for themselves. This is especially a problem when the software experts for a given experiment have moved on to other projects. This would make the CLAS software more easily maintainable for the next system upgrade.
Is this build-collection project one that the offline group would be willing to do?
- Paul
On Feb 12, 2014, at 12:47 PM, Jixie Zhang wrote:
> Hi, Nevzat,
> There are many more things you need to modify before release-4-15 finally
> get compiled. Many files need to change the header and most dependent libs
> have a newer version, and also to the cernlib. And some packages just can not
> be compiled for other reasons.
>
> I happened to went through this long time ago and have a compiled version here:
> /u/home/jixie/clas/builds/release-4-15
>
> you can copy this one and use it.
> Note that I have already rewrite the scritpt which define 'OS_NAME'.
>
> If you still need to compile your version, do a diff between mine and yours, then start
> from there.
>
> Hope it help.
>
>
>
>
> On Tue, Feb 11, 2014 at 11:36 PM, Nevzat Guler <nguler at jlab.org> wrote:
> Thank you Paul, that solved the problem once I set the env variable (which I did not have)
>
> setenv MYSQL_INCLUDE_PATH /usr/include/mysql/
>
> I will put this into my .cshrc.
>
>
>
> Now I passed the mysql error but I encountered the following error:
>
>
>
> make[2]: Entering directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/helcor_eg6'
>
> make[2]: *** No rule to make target `lib'. Stop.
>
> make[2]: Leaving directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/helcor_eg6'
>
> make[1]: *** [helcor_eg6] Error 2
>
> make[1]: Leaving directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages'
>
> make: *** [lib] Error 2
>
>
>
> Any suggestion on this one? I don’t have any idea what to do here..
>
>
>
> Just for the record, I had to make various changes to overcome number of arithmetic overflow errors to reach to this point..
>
>
>
> Best regards, - NG
>
>
>
> From: Paul Mattione [mailto:pmatt at jlab.org]
> Sent: Tuesday, February 11, 2014 11:14 PM
> To: Nevzat Guler
> Cc: 'CLAS Offline'
> Subject: Re: [Clas_offline] mysql.h
>
>
>
> On ifarm1102, this file is located in:
>
>
>
> /usr/include/mysql/
>
>
>
> Assuming there are no eccentricities in the eg1b software, make sure that your $MYSQL_INCLUDE_PATH environment variable is pointing to this directory.
>
>
>
> - Paul
>
>
>
> On Feb 11, 2014, at 10:52 PM, Nevzat Guler wrote:
>
>
>
>
> Dear CLAS offline members,
>
> I am trying to recompile my clas libraries for Linux64RHEL5. During compilation, I encounter some error related to a missing file mysql.h in calib_connect.c
>
> I am printing the part of the message below
>
> I appreciate any suggestion on the nature of this error message and how to fix it.
>
> Thanks, - NG
>
>
>
>
>
> ar: creating /home/nguler/eg1b/clas/builds/release-4-15/lib/Linux64RHEL5/libana.a
>
> make[2]: Leaving directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/ana'
>
> if test -d caldb; then \
>
> make -e -C caldb lib; \
>
> fi
>
> make[2]: Entering directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/caldb'
>
> make -C Map lib
>
> make[3]: Entering directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/caldb/Map'
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_connect.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_disconnect.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_get_char.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_get_float.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_get_int.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_put.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_stat_item.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/calib_tcl_init.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:661: depends/Linux64RHEL5/Map_wrap.d: No such file or directory
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/cms/Makefile:664: depends/Linux64RHEL5/calib_test.dd: No such file or directory
>
> Makefile: making dependency file for calib_test.c
>
> calib_test.c:8:19: error: mysql.h: No such file or directory
>
> Makefile: making dependency file for Map_wrap.c
>
> Makefile: making dependency file for calib_tcl_init.c
>
> Makefile: making dependency file for calib_stat_item.c
>
> calib_stat_item.c:10:19: mysql.h: No such file or directory
>
> Makefile: making dependency file for calib_put.c
>
> calib_put.c:11:19: mysql.h: No such file or directory
>
> Makefile: making dependency file for calib_get_int.c
>
> calib_get_int.c:10:19: mysql.h: No such file or directory
>
> Makefile: making dependency file for calib_get_float.c
>
> calib_get_float.c:11:19: mysql.h: No such file or directory
>
> Makefile: making dependency file for calib_get_char.c
>
> calib_get_char.c:11:19: mysql.h: No such file or directory
>
> Makefile: making dependency file for calib_disconnect.c
>
> calib_disconnect.c:8:19: mysql.h: No such file or directory
>
> Makefile: making dependency file for calib_connect.c
>
> calib_connect.c:10:19: mysql.h: No such file or directory
>
> make[3]: Leaving directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/caldb/Map'
>
> make[3]: Entering directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/caldb/Map'
>
> gcc -O3 -m64 -fPIC -DLinux -DLinux64 -fPIC \
>
> -I -I. -I./ -I/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/include -I/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/inc_derived -I/usr/include -I/usr/X11R6/include -c \
>
> calib_connect.c -o /home/nguler/eg1b/clas/builds/release-4-15/obj/Linux64RHEL5/Map/calib_connect.o
>
> calib_connect.c:10:19: error: mysql.h: No such file or directory
>
> In file included from calib_connect.c:11:
>
> /w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/include/calib_manager.h:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysql'
>
> calib_connect.c:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysql'
>
> calib_connect.c: In function 'calib_connect':
>
> calib_connect.c:38: error: 'mysql' undeclared (first use in this function)
>
> calib_connect.c:38: error: (Each undeclared identifier is reported only once
>
> calib_connect.c:38: error: for each function it appears in.)
>
> calib_connect.c:111: error: 'MYSQL_OPT_COMPRESS' undeclared (first use in this function)
>
> make[3]: *** [/home/nguler/eg1b/clas/builds/release-4-15/lib/Linux64RHEL5/libcaldbMap.a(calib_connect.o)] Error 1
>
> make[3]: Leaving directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/caldb/Map'
>
> make[2]: *** [lib] Error 2
>
> make[2]: Leaving directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages/caldb'
>
> make[1]: *** [caldb] Error 2
>
> make[1]: Leaving directory `/w/hallb/claseg1/nguler/Include/clas/builds/release-4-15/packages'
>
> make: *** [lib] Error 2
>
> _______________________________________________
> Clas_offline mailing list
> Clas_offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/clas_offline
>
>
>
>
> _______________________________________________
> Clas_offline mailing list
> Clas_offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/clas_offline
>
>
>
> --
> With Best Regards,
> Jixie Zhang
> 757-269-7735
> _______________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/clas_offline/attachments/20140212/2d6daa02/attachment-0001.html
More information about the Clas_offline
mailing list