Installing League of Legends on Mac OS X 10.7 (Lion)
Okay... I got my Macbook Pro this week. I love it. The trackpad thingy with two-finger swipe to scroll, three-finger swipe to drag and drop and four-finger swipe to switch between full-screen apps is absolutely amazing. The trackpad is so sensitive and accurate it feels just like iPad. The only thing that I don't like is the 100% CPU usage every time I watch own3d.tv to watch my favorite League of Legends streaming because of Adobe Flash.
So it is time to solve it! In this article I want to be able to access Internet Explorer, League of Legends and Warcraft III directly from my Mac. Here's what I currently have:
- Macbook Pro MC024LL/A 17-inch laptop
- Mac OS X 10.7.3 (Lion)
- Xcode 4.3.1
I will separate it into several topics:
Installing Mac OS X 10.7 (Lion)
My Macbook Pro comes with Mac OS X 10.6 (Snow Leopard) Operating System. Most people will suggest that I upgrade it. I don't like upgrading. Maybe it's because I've had too many bad experiences with Microsoft Windows if I go to upgrade path. I always install new and fresh. That's just my habit. So how to do a clean installation of Mac OS X 10.7 on an existing Mac OS X 10.6, and have a dual-boot capability between them? It turns out to be this simple:
- Create a new partition for Lion:
- Launch Disk Utility (from Applications\Utilities\Disk Utility).
- Select your hard drive (e.g. 500.11 GB Hitachi Media).
- Click on "Partition" tab.
- Click on "+" icon to add a new partition. Name it "Lion".
- Set the partition size for Lion. Recommended: 20 GB or more.
- Click "Apply".
- A warning message that says "This partition will be added: Lion. This partition will be resized: Macbook Air". Click "Partition". - Install Mac OS X 10.7 Lion on the new partition:
- Download "Install Mac OS X Lion.app" from App Store or buy it from Apple Store.
- Double click "Install Mac OS X Lion".
- Click "Continue" and then "Agree".
- When it asks what drive to install on, choose "Show All Disks..."
- Select to "Lion HD" partition.
How to solve warning message "Features such as FileVault and Recovery Mode won't be available if you install Lion on this disk. To learn more, click More Info. To continue with the installation, click Continue. More Info: http://support.apple.com/kb/HT4649"?
Repartition the harddisk. This time make only two partitions: "Macintosh HD" and an empty "Lion HD" with "Mac OS Extended (Journaled)" format for both partition. Then run again "Install Mac OS X" application.
- Click on “Install” and let the installer do it’s business.
Just let this be as it runs. You’ll see a preparation window and then after 2 minutes your Mac will reboot into the full installer. Due to the fact that you are installing from your local disk to another partition, the whole process is much faster than it would be to install from a DVD.
When Lion is finished installing, your Mac will now automatically boot into 10.7.
- Select Country or Region: United States
- Choose a keyboard layout: U.S.
- Finishing Up: Scroll to the bottom of the text and click "Start using Mac OS X Lion" button. - Click "Apple > Software Update...". It will download 1.92 GB of updates and this upgrades the version from Version 10.7 into the latest version (e.g. 10.7.3).
- After reboot, click again "Apple > Software Update..." to get another updates. Do this again and again until the OS is up to date.
- Go to "System Preferences > Startup Disk" to select which OS to be loaded by default. Or optionally during boot-up, press and hold the Option Key and it will let you select which OS you want to load.
Installing Xcode 4.3
Now Apple really make it easy to get Xcode. You can get it free from App Store.
- Just click "App Store" and click "Install App" next to "Xcode".
- And to prepare for MacPort, you need to install "Command Line Tools" as well.
- Launch Xcode (from Applications\Xcode).
- Click "Xcode > Preferences...". Click "Downloads" tab.
- On "Command Line Tools", click "Install".
Installing Wine
Wine is Windows emulator. I have used it on Linux since 10 years ago. Well, at that time it can only run Minesweeper or Solitaire. But now, it has grown to be able to run the most demanding Windows applications. Here's how to install it easily on Mac OS:
- Install MacPorts
- Download the latest version of MacPorts (e.g. 2.0.4) from http://www.macports.org/
- Double click "MacPorts-2.0.4-10.7-Lion.dmg"
- Double click "MacPorts-2.0.4.pkg"
- Follow the installation guide
- Verify by running: /opt/local/bin/port
np-j0a0cj030187:~ kevin$ /opt/local/bin/port
MacPorts 2.0.4
Entering interactive mode... ("help" for help, "quit" to quit)
[Users/kevin] > quit
Goodbye
np-j0a0cj030187:~ kevin$ - Install Wine
It's suppose to be this simple: sudo port install wine - Special instructions
Well... I got this error while running above instruction "You may need to run `sudo xcode-select -switch /Applications/Xcode.app`". So all you have to do is to exactly do that instruction. A very nice guide for troubleshooting can be found here.
np-j0a0cj030187:~ kevin$ sudo port install wine
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Warning: xcodebuild exists but failed to execute
Warning: Xcode appears to be installed but xcodebuild is unusable; some ports will likely fail to build.
Warning: You may need to run `sudo xcode-select -switch /Applications/Xcode.app`
Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.
---> Computing dependencies for wineError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path:
'/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
To report a bug, see
np-j0a0cj030187:~ kevin$
np-j0a0cj030187:~ kevin$ xcode-select -print-path
xcode-select: Error: No Xcode folder is set. Run xcode-select -switchto set the path to the Xcode folder.
np-j0a0cj030187:~ kevin$
np-j0a0cj030187:~ kevin$ sudo xcode-select -switch /Applications/Xcode.app
np-j0a0cj030187:~ kevin$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
np-j0a0cj030187:~ kevin$ - It will take about 2 hours to download and compile all required dependencies for wine and the wine itself. Please be patient :).
np-j0a0cj030187:~ kevin$ sudo port install wine
---> Computing dependencies for wine
---> Dependencies to be installed: apple-gcc42 bison gettext expat expat expat libiconv gperf gperf libiconv libiconv ncurses ncursesw ncursesw ncurses ncurses gettext m4 m4 bison flex flex fontconfig freetype bzip2 zlib zlib zlib freetype fontconfig gst-plugins-base gnome-vfs desktop-file-utils glib2 libffi libffi perl5 perl5.12 gdbm gdbm perl5.12 perl5 perl5 xz xz glib2 pkgconfig pkgconfig popt gconf dbus-glib dbus gtk-doc docbook-xml docbook-xml-4.1.2 xmlcatmgr docbook-xml-4.2 docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl docbook-xsl gnome-doc-utils intltool gnome-common p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser iso-codes libxslt libxml2 libxml2 libxslt libxslt py27-libxml2 python27 db46 libedit openssl openssl python_select sqlite3 python27 py27-libxml2 rarian getopt gtk2 atk gdk-pixbuf2 jasper jpeg jpeg libpng libpng tiff tiff hicolor-icon-theme pango Xft2 xrender xorg-libX11 autoconf help2man p5.12-locale-gettext automake libtool xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb xorg-libpthread-stubs xorg-xcb-proto xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto xrender cairo libpixman xorg-xcb-util shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXext xorg-libXfixes xorg-fixesproto xorg-libXcomposite xorg-libXcursor xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXinerama xorg-libXrandr xorg-randrproto xorg-libXrandr orbit2 libidl policykit eggdbus gnome-mime-data gstreamer gzip texinfo gstreamer libtheora libvorbis libogg orc lcms mesa makedepend xorg-dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libsm xorg-libXxf86vm xorg-xf86vidmodeproto
---> Fetching apple-gcc42
---> Attempting to fetch gcc-5666.3.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/apple-gcc42
---> Verifying checksum(s) for apple-gcc42
---> Extracting apple-gcc42
---> Applying patches to apple-gcc42
---> Configuring apple-gcc42
---> Building apple-gcc42
…
---> Fetching archive for wine
---> Attempting to fetch wine-1.4_2.darwin_11.i386.tbz2 from http://packages.macports.org/wine
---> Fetching wine
---> Attempting to fetch wine-1.4.tar.bz2 from http://cdnetworks-us-1.dl.sourceforge.net/project/wine/Source
---> Attempting to fetch wine_gecko-1.4-x86.msi from http://cdnetworks-us-1.dl.sourceforge.net/project/wine/Wine%20Gecko/1.4
---> Verifying checksum(s) for wine
---> Extracting wine
---> Applying patches to wine
---> Configuring wine
---> Building wine
---> Staging wine into destroot
---> Installing wine @1.4_2
---> Activating wine @1.4_2
---> Cleaning wine
np-j0a0cj030187:~ kevin$
War Craft III
War Craft III Frozen Throne runs perfect without introduction movie. Perhaps additional steps are needed to support movies playing in War Craft. Here's what I did:
- Copy "Warcraft III" directory into anywhere (I'm using /Users/kevin/Documents/Windows/GAMES/). But any directory should be fine.
- Rename "Movies" directory so that War Craft III wouldn't load it:
$ mv Movies Movies.bck - Launch using wine:
$ wine war3.exe -opengl -window
League of Legends
Running League of Legends on Wine is way harder than War Craft III. You must install vcrun2005 and wininet. And the easiest way to do that is by using winetricks.
- Installing winetricks:
$ sudo port install winetricks - Installing additional Windows native libraries using winetricks:
Visual C++ Runtime 2005 is required otherwise the application crashes with error "wine: Unimplemented function msvcp80.dll". And wininet library is required to log in.
$ winetricks vcrun2005
$ winetricks wininet - I'm still unable to play. After champion selection, it crashes. I'll update you later if I found the solution.
1 Comments:
Update:
I've decided to quit trying to emulate Windows using Wine on Mac OS and just go with the most recommended path which is dual-boot using included tool "Boot Camp".
Post a Comment
<< Home