北肙

当你不能够再拥有,唯一可以做的,就是令自己不要忘记。

Playing Gentoo Linux on a MacBook Pro with MacOS 10.11

I have spent almost one week studying how to install Gentoo Linux on a MacBook Pro with retina display and work well. After try all my best, I built my own operate system with Gentoo-sources, Openbox, Feh, Rox, Tint2, Wbar and other light tools. It worked well just like other Gentoo Linux except the retina […]

I have spent almost one week studying how to install Gentoo Linux on a MacBook Pro with retina display and work well. After try all my best, I built my own operate system with Gentoo-sources, Openbox, Feh, Rox, Tint2, Wbar and other light tools. It worked well just like other Gentoo Linux except the retina display and the 120GB APPLE SSD. When I made the MacBook sleep to the ram, it only worked fine the first time. And then, it came the error “ATA bus error”. Most of the software in Gentoo Linux have a good relationship whit the high DPI, but because of the small icons, WPS-office offered me such a ugly view.

So, I gave up working on this operate system just for those unreadable UI and the terrible battery management. By the way, it took a long time to power on with the rEFInd bootloader. Many days later, I found something about the Gentoo Prefix Project which perfect solved my problems. But the new one is I can not install this thing on my MacBook. I read the document on the Gentoo Wiki, and do what it told me to. After I execute “bootstrap-prefix.sh $EPREFIX stage1” and prepare to execute “bootstrap-prefix.sh $EPREFIX stage2”, the computer asked me, did you installed stage1 firstly? According to the messages, I modified “cp: illegal option – d” error and test command “sed” with “-I” option, but it still did not work. So I just executed the script without parameter. I thought I did the right thing. Not because I finished the installation but I found the error messages. Sometimes, success is not just finishing the job, but finding out where is the problem.

I followed the error messages, and everything looks all right. When installing “sys-devel/llvm”, I got serval error messages begin with “/usr/include/module.map:1:25: warning: unknown attribute 'extern_c'”. I tried to emerge the package manual, but then came the “circular dependencies” error. I change “USE” option in the “make.conf” file, and tried again, just the same error.

Then I moved to the directory mentioned, find out the file “module.map” and had a look. I always asked if it is because I updated the “OS X EI Capitan”? So I powered on a “OS X 10.9” virtual machine. It passed. I tried to install “command line tools 6.4” on my Macbook, but this is prohibited by Apple. I copied file “module.map” on two systems and had them checked out. I found they were almost the same expect the lines below.
“module Darwin [system] {“
“module Darwin [system] [extern_c] {“
According to the error messages, I used the “module Darwin [system] {“ one instead of the default after made a copy.
That is the day before yesterday. It spent two days compiling necessary packages. Now, I am able to start a Gentoo shell on my MacOS X 10.11 without installing the whole OS.
Checking my personal website if you wander what happen next.

Leave a Reply

Your email address will not be published. Required fields are marked *