if you try to build from source, you are going to be missing many things you'll have to get installed first... If you want standard default command line only Wine, I'd really recommend using Macports, as it can do an install and take care of everything you need automatically. you may also want to use a different 3rd party tool to use Wine on OSX since there is no official binary for it. There is one thats a script to help you get dependencies to build Wine right. http://wiki.winehq.org/ThirdPartyApplications but to your main problem, Wine installer shouldn't think you are root, unless you enabled the root user and used su to su in as root... or ran the installer using sudo.