jacquayj / GoRODS

Golang binding for iRODS C API: An iRODS client library written in Golang + C
https://godoc.org/github.com/jjacquay712/GoRODS
BSD 3-Clause "New" or "Revised" License
17 stars 5 forks source link

compilation problem #29

Closed RubenGarcia closed 5 years ago

RubenGarcia commented 5 years ago

Following the instructions, compilation fails on $ go get github.com/jjacquay712/GoRODS

github.com/jjacquay712/GoRODS

/usr/bin/ld: cannot find -lc++ /usr/bin/ld: cannot find -lc++abi /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status

Standard ubuntu 18.04.1 LTS image

RubenGarcia commented 5 years ago

apt-get install libc++abi-dev apt-get install libc++-dev apt-get install libz-dev fixed the issue. I'd recommend a comment indicating that these packages are needed in the documentation.

jjacquay712 commented 5 years ago

Thanks for the tip @RubenGarcia. I'll go through the installation process on 18.04.1 to validate this and add to the documentation. Did you install build-essential by chance? Check out this Dockerfile for 16.04: https://github.com/bioteam/minio-irods-gateway/blob/master/Dockerfile

RubenGarcia commented 5 years ago

Yes, build-essential is installed in the machine.