Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux build fails #14

Open
cataclysmic opened this issue Sep 22, 2018 · 1 comment
Open

Linux build fails #14

cataclysmic opened this issue Sep 22, 2018 · 1 comment

Comments

@cataclysmic
Copy link

Tried to install on Ubuntu 16.04.2.
Libpostal is installed to /usr/local/lib and shows up.
Apparently the compilation process works but removes poster.so and the folder structure upon some calling failure. See output below:

`> devtools::install_github("ironholds/poster")
Downloading GitHub repo ironholds/poster@master
from URL https://api.github.com/repos/ironholds/poster/zipball/master
Installing poster
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet
CMD INSTALL '/tmp/RtmpF40nNO/devtools760260deb57e/Ironholds-poster-dc7dd0b'
--library='/home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4'
--install-tests

  • installing source package ‘poster’ ...
    Found pkg-config cflags and libs!
    Using PKG_CFLAGS=-I/usr/local/include
    Using PKG_LIBS=-L/usr/local/lib -lpostal
    ** libs
    g++ -I/usr/share/R/include -DNDEBUG -I/usr/local/include -I"/home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/local/include -I"/home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c init.c -o init.o
    g++ -I/usr/share/R/include -DNDEBUG -I/usr/local/include -I"/home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c postal.cpp -o postal.o
    g++ -I/usr/share/R/include -DNDEBUG -I/usr/local/include -I"/home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c poster.cpp -o poster.o
    g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o poster.so RcppExports.o init.o postal.o poster.o -L/usr/local/lib -lpostal -L/usr/lib/R/lib -lR
    installing to /home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4/poster/libs
    ** R
    ** tests
    ** preparing package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded
    Error: package or namespace load failed for ‘poster’ in dyn.load(file, DLLpath = DLLpath, ...):
    unable to load shared object '/home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4/poster/libs/poster.so':
    libpostal.so.1: cannot open shared object file: No such file or directory
    Error: loading failed
    Execution halted
    ERROR: loading failed
  • removing ‘/home/cataclysmic/R/x86_64-pc-linux-gnu-library/3.4/poster’
    Installation failed: Command failed (1)`

Help would be much appreciated.

@otoomet
Copy link

otoomet commented Nov 16, 2018

Worked for me after I run sudo ldconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants