Commit b4b40d81 authored by 吴洲洋's avatar 吴洲洋

delete install golang env

parent b3a2c146
No preview for this file type
......@@ -57,29 +57,6 @@ function make_package()
sudo mv $VPPPATH/$vpp_tar_gz $VPPINSTALL
}
function install_golang() {
rm -rf /tmp/go1.15.6.linux-amd64.tar.*
wget -P /tmp https://studygolang.com/dl/golang/go1.15.6.linux-amd64.tar.gz
rm -rf $base/go
mkdir -p $base/go
tar xvf /tmp/go1.15.6.linux-amd64.tar.gz -C /usr/local
sed -i -e '/GOROOT/d' ~/.bashrc
sed -i -e '/GOBIN/d' ~/.bashrc
sed -i -e '/GOPATH/d' ~/.bashrc
sed -i -e '/GO111MODULE/d' ~/.bashrc
sed -i -e '/GOPROXY/d' ~/.bashrc
echo "export GOROOT=\"/usr/local/go\"" >> ~/.bashrc
echo "export GOBIN=\"/usr/local/go/bin\"" >> ~/.bashrc
echo "export GOPATH=\"$base/go\"" >> ~/.bashrc
echo "export PATH=\$PATH:\$GOBIN" >> ~/.bashrc
echo "export GO111MODULE=on" >> ~/.bashrc
echo "export GOPROXY=https://goproxy.cn" >> ~/.bashrc
source ~/.bashrc
}
function n4(){
echo "start build 5GN4"
cd $N4SRC
......@@ -110,7 +87,6 @@ function help()
echo " "
echo "Usage: build_upf [OPTION]..."
echo "--pre_install Pre-installation of dependencies required by UPF"
echo "--install_golang Configure golang's compilation environment"
echo "--vpp Build vpp"
echo "--n4 Build N4"
echo "--c Remove files generated by previous compilation "
......@@ -136,10 +112,6 @@ function main() {
pre_install
shift
;;
--install_golang)
install_golang
shift
;;
--vpp)
vpp
shift
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment