Comments (6)
In case someone runs into this issue, I solved it (without changing to the root user) using the option -E with sudo:
sudo -E ./install-all.sh
from vdpm.
I think the commands run by sudo don't have the same environment variables. Try sudo echo $VITASDK
.
from vdpm.
In case someone runs into this issue, I solved it (without changing to the root user) using the option -E with sudo:
sudo -E ./install-all.sh
This answer solved it for me.
Thank you very much for sharing it.
from vdpm.
Thanks xerpi!
sudo echo, not worked, but you were right, I got sucess with root how default.
Thank you very much!
from vdpm.
Have you wrote the command in .bashrc ?
from vdpm.
@CelesteBlue-dev as you can see on the screencap he wrote them on the shell prompt, but writing them on the .bashrc would give the same outcome.
as @javo92 suggest the workaround is to use the -E
flag to forward the user's env while sudo-ing
from man sudo
-E, --preserve-env
Indicates to the security policy that the user wishes to pre‐
serve their existing environment variables. The security
policy may return an error if the user does not have permis‐
sion to preserve the environment.
Also maybe we could give a hint while failing about the missing variable.
Something like:
if [ $EUID -eq 0 -a -z "$VITASDK" ] ; then
echo 'You seem to be running as root, however your $VITASDK is unset';
echo "Try to start this script using `sudo -E $0` ";
fi
from vdpm.
Related Issues (20)
- Yet another "./install-all.sh" issue (sorry!) HOT 2
- Signal 13 error when trying to to run ./bootstrap-vitasdk.sh HOT 1
- Problem w/ SceKernelDmacmgr_stub HOT 5
- Make vdpm be quiet
- Building enso from source fails at kernal.c HOT 6
- pkg-config files prefix HOT 1
- Library archives corrupted HOT 6
- lots of undefined references HOT 1
- ELF not found , when trying to cmake the hello world sample HOT 4
- Vita SDK Compiling Question HOT 1
- Is there a way to use the arm-vita-eabi-gcc compiler with arm64 (M1 mac)? HOT 1
- Compilation failing on ARM (both macOS and Debian container) HOT 10
- libsndfile undefined reference to `fsync'
- game build error
- install-all.sh fail at fftw HOT 8
- ./install-all.sh file format error HOT 3
- ./install-all.sh "No such file or directory". HOT 1
- install-all.sh fails on libmad HOT 2
- error on vitasdk update HOT 2
- ./install-all.sh find vdpm_install... No such file or directory HOT 3
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 vdpm.