Installing MacPorts on OS X 10.11 ‘El Capitan’

High Sierra Update:  If you are looking for instructions on how to manually install MacPorts onto the High Sierra GM release, check here:  Installing MacPorts on MacOS “High Sierra”

Update: MacPorts has released their official El Capitan installer. You should probably use it instead. 🙂

Update: Since people are ignoring my above comment, I have updated the below instructions to reflect the version changes reported by Chrisp in the comments.

Another year, another OS X update.  If you are like me, you’ve weaseled a copy of the OS X 10.11 ‘El Capitan’ Gold Master installer, and you have started checking to see how much of your software is going to break if and when you install.  Given the issues I’ve had in the past, MacPorts is the very first thing I test.  🙂

The first thing I noticed is that there is no El Capitan installer for MacPorts, and the Yosemite installer will not run on OS X 10.11.  So, we are back to compiling it ourselves.  Fortunately, this goes pretty smoothly.

The first caveat is that in addition to needing access to OS X 10.11 ‘El Capitan’ , you will need a copy of Xcode 7 (beta, RC, etc).  You won’t be able to compile MacPorts for El Capitan with Xcode 6 because of changes to one or more of the header files that ship with the OS X 10.11.

The second caveat is that I did a clean install of OS X 10.11 ‘El Capitan’, so my instructions may not adequately deal with any cruft left over by previous installs.  If you have an upgrade issue, please comment here and I’ll do my best to help you out and improve the instructions.  You may want to follow the MacPorts uninstall instructions before starting the below steps.

  1. Install OS X 10.11 ‘El Capitan’
  2. Install Xcode 7
  3. Launch Xcode:
    1. Agree to the license.
    2. Let it install the extra components it says it needs.
    3. Quit xcode.
  4. Open a terminal window:
    1. sudo bash
    2. export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
    3. xcode-select --install
    4. cd Desktop
    5. mkdir macports
    6. cd macports
    7. curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.3.4.tar.gz
    8. tar xzvf MacPorts-2.3.4.tar.gz
    9. cd MacPorts-2.3.4
    10. ./configure --enable-readline
    11. make && make install
    12. echo 'export PATH=/opt/local/bin:/opt/local/sbin:$PATH' >> ~/.profile
    13. source ~/.profile
    14. port -v selfupdate

At this point, you should be ready to start reinstalling your ports!  Wee!

If you see this error at step 4-10:

checking for Apple Foundation library... no
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: error: Could not find a working Foundation implementation

It means you either have not installed Xcode 7 GM, or that you are running Xcode 7 Beta.  Xcode 6 doesn’t know how to handle the changes to /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h that happened with El Capitan.  The configure script is able to find the header file, but the test compile fails so it reports that the Apple Foundation library isn’t there.

If you are running Xcode Beta, you can get around this by using the following command in the shell you opened above, and then going back to step 4-10:  (Thank you SadDigger for the comment on Reddit!)

xcode-select -s /Applications/Xcode-beta.app

Update 2015-09-15 11:06AM – Fixed a typo in instruction 4-3 where WordPress was converting a double-hyphen into an extended hyphen.  I have also updated it to the latest version of MacPorts, so that the final just updates the ports rather than rebuilding the whole thing. Sorry about that!

How to Fix: Adium issues connecting to Yahoo!

UPDATE: Relief is here!  You no longer need to follow any of the complicated steps on this page.  The Adium team has release a new beta that addresses the Yahoo! issue.  Download it here:  https://beta.adium.im/

For a few days now, ever since I installed the Yosemite Gold Master, I’ve been unable to use Adium to connect to the Yahoo messenger servers.  The annoyance level finally rose to the point where I needed to do something about it.  If you are here now, you are probably at that point yourself.

For me, it all started with this error:

Error: Error reading from login.yahoo.com: Undefined error: 0

If googling for that error message led you here, I have a fix.  The fix was created by reanimus, one of the Adium developers; but I’ve put together the exact steps you need to follow since this fix hasn’t made it into a release build yet.

Adium-1.5.11-windowfix.zip

UPDATE (2014/11/14) – Thanks to Shawn, a fix has been found for the New Chat Window bug.  I will incorporate the fix into the instructions below later, but for now you can either read his comments or download a pre-compiled build that I have tested on Yosemite:  Adium-1.5.11-windowfix.zip

UPDATE (2014/11/10) – The Yahoo! fix has been committed to the 1.5.11 branch of the code repo, but there is still no official 1.5.11 binary being distributed.  The steps below have been adjusted accordingly.

  1. Install xcode
  2. Install xcode command line tools
  3. Install Mercurial (I used macports, but I’m not here to preach.)
  4. If Adium is running, quit it.
  5. Open a terminal window.  Steps 5 thru 13 happen in that window.
  6. cd ~/Desktop
  7. hg clone https://hg.adium.im/adium
  8. cd adium
  9. hg checkout adium-1.5.11
  10. Depreciated step.  As of 11/10/14 the 1.5.11 branch code now has this change committed.  Only do this step if you decided to build from the 1.5.10 branch:  vi “Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c” and then insert the new lines from the diff at https://trac.adium.im/attachment/ticket/16678/adium-yim-cdsa-fix.diff (The starting line position of the diff is off by one, which is my I am having you do this by hand.)
  11. make
  12. make install
  13. sudo rm -rf /Applications/Adium.app
  14. sudo mv ~/Applications/Adium.app /Applications/

There you go.  A working build of Adium that connect to Yahoo.  As a bonus, as my steps also bumped you to the not-yet-released 1.5.11 branch.  It’s working for me, but if you have stability issues you can patch the latest official release by using ‘adium-1.5.10’ at step 8.

If the above steps are outside your comfort zone, and you would rather trust some stranger on the internet to build your this for you, you can download the compiled application and the patched source code here.  The app was built on Yosemite, may not run on other versions of OS X.  Let me know if you have any issues.

Adium + Yahoo! fix – application:  Adium.app.zip (1.5.11)
Adium + Yahoo! fix – source code:  adium-1.5.11-src.zip

This should hold you over until the next official release of the greatest IM client ever made.

 

UPDATE (2014/10/31) – I’ve had reports that “File/New Chat” crashes Adium, and I have been able to verify that on my system.  I’ve tried building 1.5.10 with the SSL fix, and it also has the crash problem.   I’ve put the 10.5.10 build up here, in case anyone wants to try it, but I don’t expect it will work for you.  🙁
The only workaround I can suggest is rather than New Chat, add the person you want to chat with as a new contact, and then open up a chat window to them via your Contacts list.

Adium + Yahoo! fix – application:  Adium-1.5.10.app.zip (1.5.10)

SecureCRT on OS X!!!!!!

I have been using SecureCRT on Win32 systems for around a decade. It is by far the best SSH/Terminal application I have ever used. Sadly, there is nothing on OS X quite like it.

Sure, Leopard gave us tabbed browsing under OS X; but the ability to manage groups of tabs is, to say the least, crippled. JellyfiSSH gives us a nice menu for managing connections, but it in itself is limited. It won’t open new connections as a tab on an existing window.

I wrote an article a while back about getting SecureCRT working on CrossOver Mac, but that has its limitations as well. The majority of what I regularly need to do works, but there is a fair chunk of activities that just crash out.

Apparently I missed something in the last VanDyke News You Can Use newsletter. I missed a survey for OS X users. I missed the chance to raise my voice and say “I will buy it!”

Never fear though, for it appears that VanDyke is indeed embarking on this noble project!

——————————————
2. Survey Results – SecureCRT for Mac OS X
——————————————

Last month we surveyed you to learn more about how you use the Mac,
and what features you would like to see in SecureCRT for the Mac
platform.

Those of you who responded were not just home and educational
users: a significant number of corporate IT users were among the
participants, with a sizable portion in larger organizations. Job
titles tended to be technical, from IT managers to developers, with
some executives for good measure.

Not surprisingly, well over half of those who responded were
current Mac users. The same proportion say they will not be
running Windows on a desktop a year from now. As for their needs,
over half wanted to see the same session management and tabbed
interface that the Windows version offers.

The most surprising result was that over half of those who
responded said there was a trend in their organization to move
away from Windows within 12 months.

The survey is now closed, but we want to get your input during
initial development. Send your requirements and comments
directly to Maureen Jett, the SecureCRT product director, at
Maureen.Jett@vandyke.com.

This is FANTASTIC news! I can’t wait.

-Chris

ps. Now, if only the folks at Visual SlickEdit would get off their arses and write a Carbon/Cocoa native port of SlickEdit for OS X. Yeah, yeah, yeah… there is an X11 based port for OS X. Sadly, it falls into the same trap that SecureCRT under CrossOver Mac does: Some of it works the way you expect, and some doesn’t; and that is just too annoying to deal with at times.

[ad#adsense-horizontal]