Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
618 views
in Technique[技术] by (71.8m points)

macos - Where/how to get the Mac OSX "login" command

To make a long story short, my terminal was not working so a forum said to delete the "login" command in /usr/bin. It worked. Now, a month later, I am trying to install fink, and it is not working because it cannot find the "login" command.

No backup disks (grrr) The install disk is not working (I hold down "C" and it logs me in anyway)

So, I was wondering if there was somewhere I could download the unix executable or--since mac is not open source, download the source code for the login command and compile it. It would have to work on my mac (10.5.8) so I really do not know where to start.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

"mac is not open source" is not accurate. Portions of Mac OS X are open source and the source code is available at http://opensource.apple.com. Specifically, login for Mac OS 10.5.8 is available at http://www.opensource.apple.com/source/system_cmds/system_cmds-433.8/login.tproj.

That being said, compiling system components is not really trivial, even with help from DarwinBuild. I would say your best shot is to grab a copy of the installation media. Have you tried contacting Apple (Store) support?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...