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

CentOs7.9 install plink1.9 error #252

Open
gaozejie opened this issue Dec 26, 2023 · 3 comments
Open

CentOs7.9 install plink1.9 error #252

gaozejie opened this issue Dec 26, 2023 · 3 comments

Comments

@gaozejie
Copy link

gaozejie commented Dec 26, 2023

My operating system version is CentOS 7.9, and Plink version is 1.9. I have already executed yum install -y gcc gcc-c++ libstdc++ gcc-gfortran glibc glibc-devel make blas-devel lapack lapack-devel atlas-devel, but when executing ./plink_first_compile, it prompts /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: not found -lcblas /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: not found -latlas, What should I do?

@chrchang
Copy link
Owner

Have you tried installing the libatlas-dev and libatlas-base-dev packages, which the documentation mentions as necessary for Ubuntu?

@gaozejie
Copy link
Author

gaozejie commented Dec 28, 2023

Have you tried installing the libatlas-dev and libatlas-base-dev packages, which the documentation mentions as necessary for Ubuntu?

The installation of these two packages prompts that they cannot be found, even if I have already installed the extended rpm source. I switched the operating system to Linux version 4.19.90-52.22.v2207.ky10.aarch64 ([email protected]) (gcc version 7.3.0 (GCC)) #1 SMP Tue Mar 14 11:52:45 CST 2023, which includes these two packages. But continuing to compile still reports error:
g++ plink.o plink_assoc.o plink_calc.o plink_cluster.o plink_cnv.o plink_common.o plink_data.o plink_dosage.o plink_family.o plink_filter.o plink_glm.o plink_help.o plink_homozyg.o plink_lasso.o plink_ld.o plink_matrix.o plink_misc.o plink_perm.o plink_rserve.o plink_set.o plink_stats.o SFMT.o dcdflib .o pigz.o yarn.o Rconnection.o hfile.o bgzf.o -L/usr/lib64/atlas -llapack -lblas -lcblas -latlas -lm -lpthread -ldl -L. ../zlib-1.3/libz.so.1.3 -o pli nk /bin/ld: plink_cluster.o: in function mds_plot(char*, char*, unsigned long*, unsigned long, unsigned int*, char*, unsigned int, unsigned int, unsigned
long, unsigned int, unsigned int, unsigned int*, unsigned int*, unsigned int, unsigned int, unsigned int, double*)':
/plink/plink-ng-master/1.9/plink_cluster.c:3079: undefined reference to dgesdd_' /bin/ld: /plink/plink-ng-master/1.9/plink_cluster.c:3085: undefined reference to dgesdd_'
/bin/ld: plink_cluster.o: in function mds_plot_eigendecomp(char*, char*, unsigned long*, unsigned long, unsigned int*, char*, unsigned int, unsigned i nt, unsigned long, unsigned int, unsigned int, unsigned int*, unsigned int*, unsigned int, unsigned int, unsigned int, double*)': /plink/plink-ng-master/1.9/plink_cluster.c:3382: undefined reference to dsyevr_'
/bin/ld: /plink/plink-ng-master/1.9/plink_cluster.c:3393: undefined reference to dsyevr_' /bin/ld: plink_calc.o: in function calc_pca(IO_FILE*, unsigned long, char*, char*, unsigned long, Rel_info*, unsigned long, unsigned long*, unsigned
long, char*, unsigned long, char**, unsigned long*, unsigned long, unsigned long*, unsigned long, unsigned long*, unsigned long, char*, unsigned long,
double*, Chrom_info*, double*)':
/plink/plink-ng-master/1.9/plink_calc.c:7108: undefined reference to dsyevr_' /bin/ld: /plink/plink-ng-master/1.9/plink_calc.c:7119: undefined reference to dsyevr
'
/bin/ld: plink_matrix.o: in function invert_matrix_checked(int, double*, int*, double*)': /plink/plink-ng-master/1.9/plink_matrix.c:310: undefined reference to dlange_'
/bin/ld: /plink/plink-ng-master/1.9/plink_matrix.c:317: undefined reference to dgecon_' collect2: error:ld return 1 make: *** [Makefile:81:plink] error 1

@chrchang
Copy link
Owner

chrchang commented Dec 30, 2023

Ok, try replacing "-lcblas -latlas" in the Makefile with "-lsatlas". I just tried starting up a new EC2 instance with a CentOS 7.9 AMI, and that did the trick there.

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