Comments (3)
@sidahmed-malaoui, I think you are right but I've spotted another issue that I need to discuss with @kotakanbe, the following lines are wrong as the file .profile
is not loaded but the file .bash_profile
instead:
echo "export GOROOT=/usr/local/go" >> "$HOME"/.profile;
echo "export GOPATH=$HOME/go" >> "$HOME"/.profile;
echo "export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> "$HOME"/.profile;
and should be replaced by:
echo "export GOROOT=/usr/local/go" >> $HOME/.bash_profile
echo "export GOPATH=$HOME/go" >> $HOME/.bash_profile
echo "export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> $HOME/.bash_profile
Another thing that should be cleaned in the script is the leading ;
at the end of the lines, it is useless in bash
for running a single command.
from vulsctl.
@kotakanbe, here is the patching code I'm currently testing for the install-host/upgrade.sh
script:
# Dirty GO missing variables patch
if [[ -f $HOME/.profile ]]; then
source $HOME/.profile
else
source $HOME/.bash_profile
fi
Let me know what you prefer and I can do the required changes.
from vulsctl.
I agree with this issue.
In my case, on CentOS, I installed golang via yum and they placed go at /usr/lib/golang/bin
.
However, as it has mentioned in this issue, the script changes GOROOT
, then make install
in later part can't find the directory /usr/local/go
.
I solved simply just comment out line 9-11.
from vulsctl.
Related Issues (18)
- How to dump default sqllite data to mysql HOT 1
- Can not run the "install.sh" Syntax error HOT 1
- Database update error when running install-host/update-all.sh HOT 2
- Failed to NewDB. Since SchemaVersion is incompatible, delete Database and fetch again HOT 2
- config.toml.remotescan - multiple host example HOT 2
- scan fails to complete with error - dial tcp [::1]:25:
- parse error on JVNDB-2021-001894 HOT 1
- Hardcoded version in cvedb does not match with latest release of vuls HOT 1
- Scanning & Reporting for Oracle Linux 7.8 fails HOT 3
- OVAL database missing Ubuntu 21.04 HOT 1
- Failed to NewDB. Since SchemaVersion is incompatible, delete Database and fetch again HOT 1
- upgrade.sh failed HOT 1
- 如何制作/导入自定义漏洞库
- vuls fails to detect CentOS Stream 8 on remote host HOT 1
- Unsable to start scan from a cron job
- Is it possible to have a summary of all hosts HOT 1
- OVAL database not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulsctl.