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

Unable to Install Ubuntu 16.04 #8

Closed
medvidov opened this issue Feb 22, 2018 · 2 comments
Closed

Unable to Install Ubuntu 16.04 #8

medvidov opened this issue Feb 22, 2018 · 2 comments

Comments

@medvidov
Copy link

On my Ubuntu 16.04 installation, I am unable to install hitandrun. Every time I try to install it in the R command line, I get an error like the one below. I have tried to use every method to install the package that I can find on Google.

COMMAND TO INSTALL IT
Installing package into ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)

  • installing source package ‘hitandrun’ ...
    ** package ‘hitandrun’ successfully unpacked and MD5 sums checked
    ** libs
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c har.c -o har.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c bound.c -o bound.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c hit.c -o hit.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c randDir.c -o randDir.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c bbReject.c -o bbReject.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c simplexSample.c -o simplexSample.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c hypersphereSample.c -o hypersphereSample.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c sab.c -o sab.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c rsabDir.c -o rsabDir.o
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c intersect.c -o intersect.o
    gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o hitandrun.so har.o bound.o hit.o randDir.o bbReject.o simplexSample.o hypersphereSample.o sab.o rsabDir.o intersect.o -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
    /usr/bin/ld: cannot find -lblas
    collect2: error: ld returned 1 exit status
    /usr/share/R/share/make/shlib.mk:6: recipe for target 'hitandrun.so' failed
    make: *** [hitandrun.so] Error 1
    ERROR: compilation failed for package ‘hitandrun’
  • removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4/hitandrun’
    Warning message:
    In install.packages("/home/user/Downloads/hitandrun_0.5-3.tar.gz", :
    installation of package ‘/home/user/Downloads/hitandrun_0.5-3.tar.gz’ had non-zero exit status
@gertvv
Copy link
Owner

gertvv commented Mar 3, 2018

Make sure you have BLAS installed (I think the package you need is "libblas-dev").

@medvidov
Copy link
Author

medvidov commented Mar 4, 2018

Fix the issue, thank you!

@medvidov medvidov closed this as completed Mar 4, 2018
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