Skip to content

Commit

Permalink
Fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten committed Jan 5, 2024
1 parent 243bb33 commit 102e19d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@
update_libchdb:
./update_libchdb.sh

install: update_libchdb
@echo "All the tests an main.go will search libchdb.so in the Current Working Directory"
@echo "We perfer to put libchdb.so in /usr/local/lib, so you can run"
@echo "'sudo cp -a libchdb.so /usr/local/lib' or 'make install' to do it"
@echo "You can also put it in other places, but you need to set LD_LIBRARY_PATH on Linux or DYLD_LIBRARY_PATH on macOS"
chmod +x libchdb.so
sudo cp -a libchdb.so /usr/local/lib
# if on Linux run `sudo ldconfig` to update the cache
# if on macOS run `sudo update_dyld_shared_cache` to update the cache
install:
curl -sL https://lib.chdb.io | sudo bash

test:
CGO_ENABLED=1 go test -v -coverprofile=coverage.out ./...

Expand Down

0 comments on commit 102e19d

Please sign in to comment.