-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-full.sh
54 lines (43 loc) · 1.24 KB
/
build-full.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
ARCH=$(uname -m)
case $ARCH in
"x86_64")
FILE="go1.23.2.linux-amd64.tar.gz"
;;
"aarch64")
FILE="go1.23.2.linux-arm64.tar.gz"
;;
*)
echo "Unsupported architecture: $ARCH"
exit 1
;;
esac
cd
yum install -y epel-release wget
yum groupinstall -y 'development tools'
yum install -y glib2-devel expat-devel libgif-devel giflib-devel libpng-devel libtiff-devel libjpeg-devel libexif-devel
mkdir libwebp && cd libwebp
wget https://chromium.googlesource.com/webm/libwebp/+archive/refs/heads/0.6.0.tar.gz
tar xf 0.6.0.tar.gz && rm -f 0.6.0.tar.gz
./autogen.sh
./configure --prefix=/usr/ --libdir=/usr/lib64 --enable-libwebpdemux --enable-libwebpmux
make && make install
cd
wget https://github.com/libvips/libvips/releases/download/v8.10.0/vips-8.10.0.tar.gz
tar xf vips-8.10.0.tar.gz && rm -f vips-8.10.0.tar.gz
cd
cd vips-8.10.0
./configure --prefix=/usr --libdir=/usr/lib64
make && make install
vips --version
cd
URL="https://go.dev/dl/$FILE"
wget $URL
tar -C /usr/local -xzf $FILE && rm -f $FILE
export PATH=$PATH:/usr/local/go/bin
go version
export CGO_CFLAGS="-std=gnu99"
git clone https://github.com/webp-sh/webp_server_go
cd webp_server_go
go build webp-server.go
./webp-server -h