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

CentOS go build error: /usr/bin/ld: cannot find -latlas #107

Open
studyzy opened this issue Nov 3, 2023 · 0 comments
Open

CentOS go build error: /usr/bin/ld: cannot find -latlas #107

studyzy opened this issue Nov 3, 2023 · 0 comments

Comments

@studyzy
Copy link

studyzy commented Nov 3, 2023

OS: CentOS Linux release 7.6.1810 (Core)

1 install package:

sudo yum install -y sqlite-devel libgomp atlas-devel lapack-devel;
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Package sqlite-devel-3.7.17-8.el7_7.1.x86_64 already installed and latest version
Package libgomp-4.8.5-44.el7.x86_64 already installed and latest version
Package atlas-devel-3.10.1-12.el7.x86_64 already installed and latest version
Package lapack-devel-3.4.2-8.el7.x86_64 already installed and latest version
Nothing to do

2 download sqlite-vss-v0.1.2-static lib

cd examples/go
download sqlite-vss-v0.1.2-static-linux-x86_64.tar.gz and tar xvf this file to lib

3 run code

make demo SQLITE_VSS_LIB_DIR=./lib
CGO_LDFLAGS=""-L./lib"" \
go build -o demo
# github.com/asg017/sqlite-vss/examples/go
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -latlas
collect2: error: ld returned 1 exit status

How to fix this error?

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

1 participant