You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

I think that ever since I installed MacPorts, I'm getting this error mesage whenever I start a new bash session. I know some other people were having this problem except the problem was with sudo and not login. I've tried commenting out all of my ~/.bash_profile to see if that would make it go away and it didn't. Then I did an in-place install of the whole OS; the problem persists.


For good measure, here's my .bash_profile file


# set the number of open files to be 1024

ulimit -S -n 1024



# Setting PATH for Python 2.7

# The orginal version is saved in .bash_profile.pysave

PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"

export PATH



# Setting PATH for Python 3.3

# The orginal version is saved in .bash_profile.pysave

PATH="/Library/Frameworks/Python.framework/Versions/3.3/bin:${PATH}"

export PATH



# MacPorts Installer addition on 2013-04-18_at_01:01:46: adding an appropriate PATH variable for use with MacPorts.

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

# Finished adapting your PATH environment variable for use with MacPorts.



Anyways, is there a solution to this? And if not, is it something I should worry about?


Thanks.

MacBook Air, OS X Mountain Lion (10.8.3), Mid 2011

Posted on Apr 17, 2013 11:16 PM

Reply
19 replies

Apr 18, 2013 8:51 AM in response to brian515

Please read this whole message before doing anything.

This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.


These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.


Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.


Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands.


Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.


Launch the Terminal application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.


When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.


Step 1


Triple-click the line of text below to select it:

kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'

Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). Post the lines of output (if any) that appear below what you just entered. You can do that by copying and pasting as well. Omit the final line ending in “$”. No typing is involved in this step.

Step 2


Repeat with this line:

sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'

This time you'll be prompted for your login password, which you do have to type. It won't be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.


Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.


Step 3

launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'

Step 4

ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null

Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.


Step 5

osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null

Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output.


You can then quit Terminal.

Apr 18, 2013 8:58 AM in response to Linc Davis

All right here's what I get


Step 1:

No output


Step 2:

com.oracle.java.Java-Updater

org.macosforge.xquartz.privileged_startx

com.sharpcast.xfsmond

com.oracle.java.Helper-Tool

com.microsoft.office.licensing.helper

com.google.keystone.daemon

com.fitbit.galileod

com.adobe.SwitchBoard

com.adobe.fpsaud


Step 3:

org.macosforge.xquartz.startx

com.oracle.java.Java-Updater

com.Logitech.Control

com.google.keystone.system.agent

com.citrix.ServiceRecords

com.citrix.AuthManager_Mac

com.adobe.CS5ServiceManager

com.valvesoftware.steamclean

com.logmein.CubbyService

com.google.GoogleContactSyncAgent

com.google.Chrome.framework.service_process/Users/my_username/Library/Applicatio n_Support/Google/Chrome

com.facebook.videochat.my_username.updater

com.adobe.ARM.930da3ce175de4e82bd3cdf1dd8571f74bd3b6a7236bc94bfc00f6e9

com.adobe.AAM.Scheduler-1.0


Step 4:

/Library/Components:



/Library/Extensions:

ext2fs.kext



/Library/Frameworks:

.svn

AEProfiling.framework

AERegistration.framework

Adobe AIR.framework

AudioMixEngine.framework

ExtFSDiskManager.framework

FxPlug.framework

NyxAudioAnalysis.framework

PluginManager.framework

ProFX.framework

ProMetadataSupport.framework

Python.framework

QtCore.framework

QtGui.framework

R.framework

TIAppKit.framework

TIConnectManagerXInteraction.framework

TIDataConversionBase.framework

TIPluginLocator.framework

XSKey.framework

glib.framework

iLifeFaceRecognition.framework

iLifeSQLAccess.framework

iLifeSlideshow.framework

iTunesLibrary.framework

libticables.framework

libticalcs.framework

libtifiles.framework

mathlink.framework



/Library/Input Methods:



/Library/Internet Plug-Ins:

AdobePDFViewer.plugin

CitrixICAClientPlugIn.plugin

Flash Player.plugin

JavaAppletPlugin.plugin

LogitechHarmony.plugin

Mathematica.plugin

MeetingJoinPlugin.plugin

Quartz Composer.webplugin

QuickTime Plugin.plugin

SharePointBrowserPlugin.plugin

SharePointWebKitPlugin.webplugin

Silverlight.plugin

Unity Web Player.plugin

Unused

flashplayer.xpt

googletalkbrowserplugin.plugin

npgtpo3dautoplugin.plugin

nsIQTScriptablePlugin.xpt

o1dbrowserplugin.plugin



/Library/Keyboard Layouts:



/Library/LaunchAgents:

com.Logitech.Control Center.Daemon.plist

com.adobe.AAM.Updater-1.0.plist

com.adobe.CS5ServiceManager.plist

com.citrix.AuthManager_Mac.plist

com.citrix.ServiceRecords.plist

com.google.keystone.agent.plist

com.oracle.java.Java-Updater.plist

org.macosforge.xquartz.startx.plist



/Library/LaunchDaemons:

com.adobe.SwitchBoard.plist

com.adobe.fpsaud.plist

com.apple.aelwriter.plist

com.fitbit.galileod.plist

com.google.keystone.daemon.plist

com.microsoft.office.licensing.helper.plist

com.oracle.java.Helper-Tool.plist

com.sharpcast.xfsmond.plist

org.macosforge.xquartz.privileged_startx.plist



/Library/PreferencePanes:

FMDSysPrefPane.prefPane

Flash Player.prefPane

JavaControlPanel.prefPane

Spelling.prefPane

TeXDistPrefPane.prefPane



/Library/PrivilegedHelperTools:

Google Drive Icon Helper

com.microsoft.office.licensing.helper



/Library/QuickLook:

iBooksAuthor.qlgenerator

iWork.qlgenerator



/Library/QuickTime:

AppleIntermediateCodec.component

AppleMPEG2Codec.component

DesktopVideoOut.component

FCP Uncompressed 422.component

LiveType.component



/Library/ScriptingAdditions:

Adobe Unit Types.osax



/Library/Services:

.DS_Store

SymbolicLinker.service

TI Connect Manager X.app



/Library/Spotlight:

Microsoft Office.mdimporter

Wolfram Notebook.mdimporter

iBooksAuthor.mdimporter

iWork.mdimporter



/Library/StartupItems:

ChmodBPF



/etc/mach_init.d:



/etc/mach_init_per_login_session.d:



/etc/mach_init_per_user.d:



Library/Address Book Plug-Ins:

SkypeABDialer.bundle

SkypeABSMS.bundle



Library/Fonts:

Bellerose.ttf

Catull.ttf

Chunk.ttf

Franchise-Bold-hinted.ttf

Humor-Sans.ttf

Junction.otf

LeagueGothic-CondensedItalic.otf

LeagueGothic-CondensedRegular.otf

LeagueGothic-Italic.otf

LeagueGothic-Regular.otf

MEgalopolisExtra.otf

Museo300-Regular.otf

Ostrich Black.ttf

Ostrich Bold.ttf

Ostrich Dashed.ttf

Ostrich Light.ttf

Ostrich Regular.ttf

Ostrich Rounded.ttf

Prociono.ttf

Roboto-Black.ttf

Roboto-BlackItalic.ttf

Roboto-Bold.ttf

Roboto-BoldCondensed.ttf

Roboto-BoldCondensedItalic.ttf

Roboto-BoldItalic.ttf

Roboto-Condensed.ttf

Roboto-CondensedItalic.ttf

Roboto-Italic.ttf

Roboto-Light.ttf

Roboto-LightItalic.ttf

Roboto-Medium.ttf

Roboto-MediumItalic.ttf

Roboto-Regular.ttf

Roboto-Thin.ttf

Roboto-ThinItalic.ttf

SPACEMAN.TTF

encodings.dir

fonts.dir

fonts.list

fonts.scale

nevis.ttf



Library/Input Methods:

.localized



Library/Internet Accounts:

V1



Library/Internet Plug-Ins:

FacebookVideoCalling.bundle



Library/Keyboard Layouts:



Library/LaunchAgents:

com.adobe.AAM.Updater-1.0.plist

com.adobe.ARM.930da3ce175de4e82bd3cdf1dd8571f74bd3b6a7236bc94bfc00f6e9.plist

com.apple.AddressBook.ScheduledSync.ABExchangeSource.A08C74E1-20A6-48F5-B94F-176 A1F445F3D.plist

com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.189F2E41-7FC8-4797-A3BE-955 EDD785BDB.plist

com.apple.CSConfigDotMacCert-my_email@me.com-SharedServices.Agent.plist

com.facebook.videochat.briancharous.plist

com.google.Chrome.framework.plist

com.google.GoogleContactSyncAgent.plist

com.logmein.CubbyService.plist

com.valvesoftware.steamclean.plist



Library/Mail/Bundles:



Library/PreferencePanes:

MusicManager.prefPane



Library/Services:

.DS_Store

Import into NOOK for Mac.workflow


Step 5:

No output

Apr 18, 2013 9:42 AM in response to brian515

Delete the following, then log out and log back in:


~/Library/LaunchAgents/com.google.Chrome.framework.plist


Whatever Google crapware put it there may put it back. If you're using a beta version of Chrome, get rid of it and use the release version. Better yet, get rid of Chrome altogether and use Chromium instead, if you want that type of browser.

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.