Menu

#25 Problems Compiling Rexx/SQL 2.6B3 with ooRexx 4.1.3 on CentOS 5.5

v1.0 (example)
closed
None
5
2014-11-02
2014-11-01
Norbert
No

I compiled and installed ooRexx 4.1.3 64bit on a CentOS 5.5 server. ooRexx appears to be running fine. I then downloaded/unpacked rxsql26B3_src.zip but had problems with the 'make' step.

./configure --with-rexx=oorexx --with-db=mysql
make
...
gcc -m64 -o rexxsql loader.o my.o rxpack.o rxmt_notmt.o -lpthread -L /usr/lib/ooRexx/ooRexx -L /usr/lib64/ooRexx -lrexx -lrexxapi -ldl -L/usr/lib64/mysql -lmysqlclient -lm -lnsl
/usr/bin/ld: cannot find -lrexx
collect2: ld returned 1 exit status
make: *** [rexxsql] Error 1

Neither of the directories specified above exist - the ooRexx shared libraries are installed in /usr/lib/ooRexx.

I was able to work around the problem by setting LDFLAGS but am not sure that is the right approach.

LDFLAGS="-L /usr/lib/ooRexx" ./configure --with-rexx=oorexx --with-db=mysql
make
sudo make install

Although Rexx/SQL compiled and installed successfully, rexxsql subsequently could not find librexx.so.4 and librexxapi.so.4 unless I set LD_LIBRARY_PATH, suggesting that the ooRexx library pointers were not properly linked.

Although I have a workaround, it would be great to know the correct way of installing Rexx/SQL.

Thanks, Norbert

Discussion

  • Mark Hessling

    Mark Hessling - 2014-11-02

    My limited understanding of compiling and installing ooRexx is that it requires more manual effort to ensure that the ooRexx libraries can be referenced. I installed ooRexx from the rpm file for Fedora 19 (the closest I have to CentOS 5.5) and it installed a file in /etc/ld.so.conf.d which lists the ooRexx library directory. I then downloaded Rexx/SQL source and compiled and it ran fine.
    From my perspective the error is in the installation of ooRexx and I suggest you enquire on ooRexx support forums for more support or install ooRexx from a package file.

     
  • Mark Hessling

    Mark Hessling - 2014-11-02
    • status: open --> closed
    • assigned_to: Mark Hessling
     
MongoDB Logo MongoDB