0

I am new to using a macbook terminal. Initially when I used the terminal for working on Raspberry Pi everything was great. But now when I try to use the terminal and type sudo it keeps giving a dyld message. And also rejects my commands. The message is :

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

Password:

what do I do? And why has this message started appearing all of a sudden? Can anyone give a step by step guide on stopping this Thanks a lot:)

  • What do you mean it rejects your commands? Does that give you an error message too? That's certainly odd—try running env | grep '^DYLD' and see what the output is. – 0942v8653 Feb 19 '15 at 19:15
  • Did you set DYLD_ environment ? – Mark Feb 19 '15 at 21:08
  • by reject i mean that it keeps displaying the dyld_environment message everytime I try to use sudo. – user2549980 Mar 2 '15 at 17:36
  • I typed the command and the output was:DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib:/usr/lib:: – user2549980 Mar 2 '15 at 17:37
  • no I haven't set the environment. – user2549980 Mar 2 '15 at 17:37
1

On the short term, within a Terminal enter:

unset DYLD_FALLBACK_LIBRARY_PATH

and check that:

/usr/bin/sudo

is working.

Your description let think of an installer which modified your working environment in closed relationship with the X11 environment.

To further analyze where this problem is coming, within a Terminal search which initialisation file might be working on this environment variable:

grep DYLD ${HOME}/.profile ${HOME}/.bash_profile ${HOME}/.bashrc

If you are using anything else than sh or bash as your working shell, search inside the equivalent initialisation files.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .