Skip to content

Commit 102e19d

Browse files
committed
Fix install
1 parent 243bb33 commit 102e19d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@
33
update_libchdb:
44
./update_libchdb.sh
55

6-
install: update_libchdb
7-
@echo "All the tests an main.go will search libchdb.so in the Current Working Directory"
8-
@echo "We perfer to put libchdb.so in /usr/local/lib, so you can run"
9-
@echo "'sudo cp -a libchdb.so /usr/local/lib' or 'make install' to do it"
10-
@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"
11-
chmod +x libchdb.so
12-
sudo cp -a libchdb.so /usr/local/lib
13-
# if on Linux run `sudo ldconfig` to update the cache
14-
# if on macOS run `sudo update_dyld_shared_cache` to update the cache
6+
install:
7+
curl -sL https://lib.chdb.io | sudo bash
8+
159
test:
1610
CGO_ENABLED=1 go test -v -coverprofile=coverage.out ./...
1711

0 commit comments

Comments
 (0)