Thanks for that quick response John.
I first opened Directory Utility and "Enabled Root User", assigned it a purely numeric password, then ran "sudo su" command from a standard (non-admin) user as instructed. It prompted for a password, but when I provide it, it says "Sorry, try again". Then I switched to my admin user and tried again, but with same results.
Strangely, I can switch from standard to admin user and vice-versa from a terminal window without any issues by doing the following -
su - <shortusername>
Then at the password prompt, I enter the appropriate password and am able to get into that user account. So it appears that sudo is the problem.
In the meantime, I found a way to get root access from the terminal (my iMac has 2 configured users: 1 standard and 1 admin) -
a. first enable root access from Directory Utility -> Edit
b. Switch to Login Window (you will see an option to Login using root - or any user really)
c. Use that option to logon as root
d. Once you are in, you can open a Terminal window.
I am planning to use this as a last option to execute that DBD's make install, if no other cleaner way exists. My worry being, if it installs as root and I have to run my perl scripts from a standard user account, whether I will have permission problems at runtime. Plus, I don't know if the scripts also come with a clean uninstall.
To answer your other question -
- I did install the latest version of Xcode after the Yosemite update, so I am guessing the command line utilities are installed. I also think if they weren't, I would have run into issues with DBD::mysql install in prior steps itself (involving other makefiles).
Anyone else reading this about DBD::mysql driver install problems on Yosemite, please let me know if you have had success with it. I have seen suggestions stating that one should install fink or use MacPorts, but after cursory reading of their installation procedures, it appears that setup will run its own makefiles. So I'd like to avoid those installs if I can. Even if I did, this driver install is the only reason I'd use it for, really.
Cheers.