GithubHelp home page GithubHelp logo

$VITASDK is not set about vdpm HOT 6 CLOSED

vitasdk avatar vitasdk commented on August 20, 2024
$VITASDK is not set

from vdpm.

Comments (6)

javo92 avatar javo92 commented on August 20, 2024 9

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.

xerpi avatar xerpi commented on August 20, 2024 3

I think the commands run by sudo don't have the same environment variables. Try sudo echo $VITASDK.

from vdpm.

kaelyavel avatar kaelyavel commented on August 20, 2024 1

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.

developer-sp avatar developer-sp commented on August 20, 2024

Thanks xerpi!
sudo echo, not worked, but you were right, I got sucess with root how default.
Thank you very much!

from vdpm.

 avatar commented on August 20, 2024

Have you wrote the command in .bashrc ?

from vdpm.

yne avatar yne commented on August 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.