EUDAT-B2STAGE / B2STAGE-GridFTP

B2STAGE service core code for EUDAT project: iRODS-DSI
14 stars 15 forks source link

Fixed some paths, wording and examples. #14

Closed chStaiger closed 8 years ago

chStaiger commented 8 years ago

Compilation error

user@ubuntu:~/iRODS_DSI/B2STAGE-GridFTP$ make install Scanning dependencies of target globus_gridftp_server_iRODS [ 10%] Building C object CMakeFiles/globus_gridftp_server_iRODS.dir/DSI/globus_gridftp_server_iRODS.c.o /home/user/iRODS_DSI/B2STAGE-GridFTP/DSI/globus_gridftp_server_iRODS.c:29:28: fatal error: rodsClient.hpp: No such file or directory

include "rodsClient.hpp"

                        ^

compilation terminated. make[2]: * [CMakeFiles/globus_gridftp_server_iRODS.dir/DSI/globus_gridftp_server_iRODS.c.o] Error 1 make[1]: * [CMakeFiles/globus_gridftp_server_iRODS.dir/all] Error 2 make: *\ [all] Error 2

Solved by:

Install necessary iRODS packages and code

mkdir -p ~/iRODS_DSI
cd ~/iRODS_DSI
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/ubuntu14/irods-dev-4.1.8-ubuntu14-x86_64.deb
sudo dpkg -i irods-dev-4.1.8-ubuntu14-x86_64.deb
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/ubuntu14/irods-runtime-4.1.8-ubuntu14-x86_64.deb
sudo dpkg -i irods-runtime-4.1.8-ubuntu14-x86_64.deb
sudo apt-get update
git clone https://github.com/EUDAT-B2STAGE/B2STAGE-GridFTP.git

Comment 1 Does this error still occurs in iRODS 4? An error like:

   ${IRODS_PATH}/lib/core/obj/libRodsAPIs.a(clientLogin.o):
   relocation R_X86_64_32 against `.bss` can not be used when making
   a shared object; recompile with -fPIC

usually happens on x86_64 systems. In order to solve it, recompile iRODS with the mentioned flag, -fPIC:

a) Edit iRODS/config/irods.config and add:

  `$CCFLAGS = '-fPIC';`

b) Rebuild iRODS with ./irodssetup

The fix needs to be updated to iRODS4 —> replace irodssetup with /var/lib/irods/packaging/setup_irods.sh I am not sure which of the *_config.json to edit.

Error user@ubuntu:~/iRODS_DSI/B2STAGE-GridFTP$ sudo /etc/init.d/globus-gridftp-server restart

Solved by editing the gridftp.conf file: $LD_LIBRARY_PATH "$LD_LIBRARY_PATH:/home/eve/iRODS_DSI/B2STAGE-GridFTP/“

muccix commented 8 years ago

I don't think the $CCFLAGS = '-fPIC'; is needed anymore with iRODS 4. So I think we can remove that part.