Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UPF
Commits
b4b40d81
Commit
b4b40d81
authored
Mar 11, 2021
by
吴洲洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete install golang env
parent
b3a2c146
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
30 deletions
+2
-30
plugin/configure
plugin/configure
+0
-0
scripts/build_upf.sh
scripts/build_upf.sh
+2
-30
No files found.
plugin/configure
View file @
b4b40d81
No preview for this file type
scripts/build_upf.sh
View file @
b4b40d81
...
@@ -57,29 +57,6 @@ function make_package()
...
@@ -57,29 +57,6 @@ function make_package()
sudo mv
$VPPPATH
/
$vpp_tar_gz
$VPPINSTALL
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
(){
function
n4
(){
echo
"start build 5GN4"
echo
"start build 5GN4"
cd
$N4SRC
cd
$N4SRC
...
@@ -110,7 +87,6 @@ function help()
...
@@ -110,7 +87,6 @@ function help()
echo
" "
echo
" "
echo
"Usage: build_upf [OPTION]..."
echo
"Usage: build_upf [OPTION]..."
echo
"--pre_install Pre-installation of dependencies required by UPF"
echo
"--pre_install Pre-installation of dependencies required by UPF"
echo
"--install_golang Configure golang's compilation environment"
echo
"--vpp Build vpp"
echo
"--vpp Build vpp"
echo
"--n4 Build N4"
echo
"--n4 Build N4"
echo
"--c Remove files generated by previous compilation "
echo
"--c Remove files generated by previous compilation "
...
@@ -136,12 +112,8 @@ function main() {
...
@@ -136,12 +112,8 @@ function main() {
pre_install
pre_install
shift
shift
;;
;;
--install_golang
)
--vpp
)
install_golang
vpp
shift
;;
--vpp
)
vpp
shift
shift
;;
;;
--n4
)
--n4
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment