How to Install PuTTY on OS X

Update: I wrote this in 2009! That was forty Internet years ago. I’m leaving this article here in an archival state. But please, use Homebrew to install PuTTY. You don’t have to read the rest of this post. Simply open Terminal, paste this command:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)

Then type:

brew install putty

And that’s it, PuTTY will be installed on your machine. Easy. That is, if you are running the newest version of OS X, which you certainly should be.

If you have any questions at all, please leave a comment below or use the contact form above. I do answer your emails if they are interesting enough!

Some people are very used to PuTTY and they miss it when they are on a Mac. Is there a version for OS X? No, so this post is for those people. This really isn’t an install per se, it’s actually called a port. PuTTY doesn’t work “naturally” on OS X, so you need to use MacPorts to ‘port’ it to your Mac. When utilizing MacPorts, you can find that there are thousands of programs you can run on your Mac that normally wouldn’t be available. The interfaces may feel or act a bit differently, but it’s better than not having them at all.

Here are the steps to get it geared up:

1) Install MacPorts – Download/instructions for MacPorts (Be sure to pick the correct file for your OS X version.)

2) Open the saved .dmg file to install MacPorts.

3) After installation of MacPorts is complete, there’s one more item to check. Make sure you have XCode installed on your computer. If you are running OS X 10.6, you should download and run XCode 3.2. You will have to be a member (which is free) of Apple Developer Connection to download the file. The reason you need developer tools is because you are actually compiling source code in order to get this working, as a developer does.

4. After installing XCode, open up Terminal and paste this command:
sudo port -v selfupdate
This updates your install of MacPorts. You should see the update take place. If you don’t, leave a comment here so we can help you out with the error. But everything should work fine if the steps above have been followed exactly.

5. All you have to do next is paste this command:
sudo port install putty
This should take a few minutes and work without a hitch.

6. Now to start using it, type this into Terminal and Putty will then pop right up into an X11 window:
putty

7. To put a shortcut on the Desktop, run an additional command in the terminal:
cp /opt/local/bin/putty ~/Desktop/PuTTY

Additonal Install/Migration Instructions

If you have installed MacPorts prior to Snow Leopard, you have to run a few fixes to get PuTTY to work again properly.

1. Open Terminal
2. Paste:
sudo port uninstall glib1; sudo port uninstall gtk1; sudo port install putty
3. Once done, all the necessary libraries should be updated and you should have a new Putty up and running.

Note:
When I first started to write this article, I was going to use Fink, however, it appears they dropped the package. So I opted for MacPorts which is the most recently updated and compatible. It all works – for now.

What this means:
Eventually, everyone who is accustomed to Putty will need to change directions indefinitely, so please take a look at Daniel’s post on Terminal in OS X. Until then, keep hacking and compiling if you really need to.

Share

98 Comments

  1. carl

    I have OS X Tiger. I installed MacPorts. Then, I isnstalled X-Code and WebObjects.mpkg. I wrote the X- Code update comment on Terminal. It gave an error: command not found. I have a router and Firewall was on. Could you please help me how to install Putty?

    Thanks in advance

    Carl

  2. Daniel

    Make sure you install MacPorts properly prior to running the ‘sudo port -v selfupdate’. It’s saying ‘command not found’, because ‘port’ (ie. macports) cannot be found.

    Thanks.

  3. Your network equipment or settings should not be preventing a successful install of MacPorts. Since you have Tiger, did you install XCode 2.5?

  4. Guido

    Hi Daniel & Kayla – Thanks for publishing this information, you are a great resource. Once I had PuTTy installed, it works fine. The only issue I have is getting a serial console session via a USB-Serial adapter. The adapter is installed and accessible using the Apple provided pl2303 driver. I can open a connection pointing to the /dev/tty.PL2303-00001004 serial line, and I can see physical evidence that my keystrokes are passing through (via the LED on the USB device), but the terminal screen remains blank. I’ve tried changing the normal serial options (local echo, etc) with no result. Any ideas?

  5. Kathleen

    Computing dependencies for puttyError: 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?
    Before reporting a bug, first run the command again with the -d flag to get complete output.
    I did not know how to add -d flag. Did try adding it like this: sudo port install putty -d
    Got the above message 2x. Thanks for any help

  6. @Guido: try messing with the baud rate settings – typically most devices will use 9600 bps, 8N1 (bps, parity, bits). If you have a manual for the device that you’re trying to console, it most likely has a section which describes how to access it via serial. Another possibility – the device might require you to use a serial or a null modem cable – both look identical, however are wired differently. Finally, just to be sure – you can also try to access the serial device by opening Terminal and typing the following:

    ‘screen /dev/tty.PL2303-00001004 9600’

    Again, try to mess with the baud rate depending on what the device takes.

  7. @Kathleen,

    It wasn’t able to locate the ‘make’ binary. ‘make’ should ship with all the compilers etc. that are provided with XCode.

    Are you sure you have XCode fully installed?

    Thanks,

  8. Kathleen

    I was able to download xCode 2.5 and installed then went back and followed these instructions. Everything seemed to go fine. But when I type in putty per step 6 I get this message: kathleens-computer:~ kathleenhallren$ putty

    Gtk-WARNING **: cannot open display: :0
    Thanks for any assistance. I seem to be making progress.

  9. Kathleen

    I was able to solve the problem. I did not have x11 installed for some reason. Loaded it from Xcode Tools and downloaded upgrade from apple. Now I am up and running PuTTY. Thank you, the notes and hints on here led me through the process.

  10. Instructions work AS Advertised for Snow Leopard 🙂

    I did have minor issue with needing to update XCode. But, after that, I am as happy as a WinDoZe user could ever be… ease for all of my tunneled connections.

    Thx for the post !!!

    Martin

  11. Kathleen

    In my system settings I have selected the option for the F keys to function as F1, F2 etc. They work up to F8. I have had this problem with other VPN and emulation programs. Is there a key combination or work around for this. Thank you.

  12. Hi Kathleen! To use the actual function keys, just hold down the ‘function’ key (“FN”, bottom left of your keyboard) and press whichever F[1-12] key you need (ie. FN+F4 etc.).

  13. Christos

    Hello I have mac os 10.6.5 and XCode 3.2.4 i installed MacPorts and then i did
    >sudo port -v selfupdate
    as a super user and everything was fine but when i did
    >sudo port install putty
    as a super user after long time i got this error

    Error: The following dependencies were not installed: gtk1 xorg-libXext xorg-libX11 xorg-libxcb python26 db46 gdbm openssl zlib readline sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXt xorg-libsm xorg-libice

    any advice?

  14. Paul

    I already finished the installation, everything looks good but i need to wait few days after test that, but im pretty sure this can work without problem.

  15. Rana

    I enter the first command to update in terminal but required password i tried to write but I couldnt write anything for the password.

  16. snehith

    sent 36 bytes received 77 bytes 25.11 bytes/sec
    total size is 512 speedup is 4.53
    Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports
    Hi,
    Can you please help me out why i am getting this error while update the port i used the cammand which is mentioned in the website
    i.e :sudo port -v selfupdate
    Total number of ports parsed: 0
    Ports successfully parsed: 0
    Ports failed: 0
    Up-to-date ports skipped: 13523

    —> MacPorts base is already the latest version

    The ports tree has been updated. To upgrade your installed ports, you should run
    port upgrade outdated

    Thanks,
    Snehith

  17. Robert Hadstate

    Running OS X 10.3. Trying to install putty. have installed mac ports and xcode 4,

    This is message I get.
    Last login: Sun Feb 26 15:10:12 on ttys000
    Roberts-MacBook-Air:~ rhadstate$ sudo port install putty
    Password:
    Warning: xcodebuild exists but failed to execute
    Warning: Xcode does not appear to be installed; most ports will likely fail to build.
    —> Computing dependencies for puttyError: 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
    Roberts-MacBook-Air:~ rhadstate$

    If you can help I would appreciate.

    Thanks.

  18. kenan

    Hi Kayla,

    It doesn’t work.

    sudo port install putty
    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 puttyError: 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

  19. guan

    Hi,

    having this error

    $ sudo port install putty
    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 puttyError: 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

    running on macbook air – lion 10.7.4

    thank and regard

  20. Actisys

    If you’re getting error while installing please be remember to open your Xcode and download all require library files. As I know the new Xcode doesn’t come with it.

    After install everything, do a reboot then follow above method to install your putty.

    p/s: Tested OK! 🙂 Cheers

  21. Thanks, very helpful:o)

    Just a couple of additional points required to make this work…

    1. Current version of XCode is 4.3.3 (Free)
    2. Once this is installed you need to run it, then go to Preferences > Download and install Command Line Tools before Putty can be ported in.

    Cheers =OD

  22. Ravi

    I installed every bit but when I start putty on my mac osx lion. I t gives me following error:
    Please help

    (putty:76713): GdkPixbuf-WARNING **: Error loading XPM image loader: Image type ‘xpm’ is not supported

    (putty:76713): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)’ failed

    (putty:76713): GdkPixbuf-WARNING **: Error loading XPM image loader:
    Image type ‘xpm’ is not supported

    (putty:76713): GdkPixbuf-WARNING **: Error loading XPM image loader: Image type ‘xpm’ is not supported

    (putty:76713): GdkPixbuf-WARNING **: Error loading XPM image loader: Image type ‘xpm’ is not supported

    (putty:76713): Gdk-CRITICAL **: void gdk_window_set_icon_list(GdkWindow *, GList *): assertion `GDK_IS_PIXBUF (pixbuf)’ failed

  23. Dante' Perkins

    How to fix???

    Computing dependencies for puttyError: 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?

  24. Shayne

    I tried to install putty, but got this error:

    Computing dependencies for puttyError: 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?

    I did use the -d flag that someone suggested. Any advice?

  25. Evgeny

    Hallo!
    I have Mac OS X 10.7.4. I installed MacPorts-2.1.2-10.7-Lion and Xcode-4.3.2.
    And now I have trouble like Rana:

    I enter “sudo port -v self update” to update in terminal but required password. I tried to write but I couldn’t write anything for the password.

    Thank you.

  26. Anubhav Singh

    Hey,

    This is what I get

    Anubhav-Singhs-iMac:~ itsmeanubhav$ sudo port -v selfupdate
    —> Updating MacPorts base sources using rsync
    rsync: failed to connect to rsync.macports.org: Operation timed out (60)
    rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
    Command failed: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
    Exit code: 10
    Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

    Can you please help ?

  27. Anubhav Singh

    Sorted the last error out !… Got this new one, just installed xcode, restarted my imac and tried to run these commands from the terminal

    Anubhav-Singhs-iMac:~ itsmeanubhav$ sudo port install putty
    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 puttyError: 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?

  28. Bear

    sudo: port: command not found

    That is exactly what it said. I installed the Mac Ports and I already have xcode.

  29. Khaled

    I got an error trying to do the update

    sudo port -v selfupdate

    Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)

  30. Khaled

    just thought to show the full output

    checking build system type… i386-apple-darwin12.2.0
    checking host system type… i386-apple-darwin12.2.0
    checking target system type… i386-apple-darwin12.2.0
    checking MacPorts version… 2.1.2
    checking for sw_vers… /usr/bin/sw_vers
    checking for defaults… /usr/bin/defaults
    checking for xcode-select… /usr/bin/xcode-select
    checking Mac OS X version… 10.8.2
    checking Xcode location… /Applications/Xcode.app/Contents/Developer
    checking Xcode version… 4.5.1
    checking for gcc… /usr/bin/cc
    checking whether the C compiler works… no
    configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base’:
    configure: error: C compiler cannot create executables
    See `config.log’ for more details
    shell command “cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure –prefix=/opt/local –with-tclpackage=/Library/Tcl –with-install-user=root –with-install-group=admin –with-directory-mode=0755 –enable-readline && make && make install SELFUPDATING=1” returned error 77
    Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)

  31. Khaled

    I just went to xcode and installed “Command Line Tools” and re-run the command ! works now

  32. navaneetha

    Hi ,
    I have MAC OSX Lion. I installed Macports, Xcode and also putty using cmd line. I typed ‘putty’ in cmd line but it is giving the following error.

    dyld: lazy symbol binding failed: Symbol not found: _cairo_xlib_surface_create
    Referenced from: /opt/local/lib/libgdk-x11-2.0.0.dylib
    Expected in: /opt/local/lib/libcairo.2.dylib

    dyld: Symbol not found: _cairo_xlib_surface_create
    Referenced from: /opt/local/lib/libgdk-x11-2.0.0.dylib
    Expected in: /opt/local/lib/libcairo.2.dylib

    Trace/BPT trap: 5

    Please help me to resolve this.

  33. Chris

    I face a problem.I did download all the things you said(Xcode,MacPort) and now I am running terminal and in the demand sudo port install putty it writes to meError:
    Error: No Xcode installation was found.
    Error: Please install Xcode and/or run xcode-select to specify its location.
    Error:
    Warning: xcodebuild exists but failed to execute
    Warning: Xcode does not appear to be installed; most ports will likely fail to build.
    —> Computing dependencies for puttyError: 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?
    I do have the latest version of iOS and I do have the latest version of Xcode

  34. Jenny

    Error: The following dependencies were not installed: gtk2 gdk-pixbuf2 hicolor-icon-theme pango Xft2 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXext xorg-xextproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: Processing of port putty failed

    I have the above errors, so I failed in installing it.
    Looking forward to your help.
    Thanks.
    Jenny

  35. CHARLES

    I have Mac OS X 10.7.4. I installed MacPorts-2.1.2-10.7-Lion and Xcode-4.3.2.

    i got the error below,
    Kindly help.

    CHARLESs-MacBook-Pro:~ charlesduru$ sudo port -v selfupdate

    updating MacPorts base sources using rsync
    rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname provided, or not known
    rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
    Command failed: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
    Exit code: 10
    Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

  36. shahid

    PC-782:~ Shahid$ sudo port install putty
    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 puttyError: 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?

    any idea how to fix it?

  37. Thomas Holland

    I have installed putty sucessfully on Mountain Lion, but when I try to run it, I get the following error:
    (putty:13696): Gtk-WARNING **: cannot open display:

  38. Hussain

    How can I install PuTTY on Mac OS 10.7.5? I always used Windows but recently bought a MacBook Air and don’t know how to do a lot of things but I am getting better with time…thanks in advance…

  39. John

    Got this far, all a seems fine until this point:

    6. Now to start using it, type this into Terminal and Putty will then pop right up into an X11 window:
    putty

    Error displayed in Terminal:

    (putty:26948): Gtk-WARNING **: cannot open display:

    It then just displays the command prompt. Can’t find anything online that mentions this issue. I am running Mountain Lion 10.8.2

    Any ideas?

  40. Abhishek Srivastava

    I got this error!!

    rsync: failed to connect to rsync.macports.org: Operation timed out (60)
    rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
    Command failed: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
    Exit code: 10
    Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

  41. I’m getting below error when I tried to make MacPorts up using ‘sudo port -v selfupdate’

    Updating MacPorts base sources using rsync
    rsync: failed to connect to rsync.macports.org: Connection refused (61)
    rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]

    Need help..!!

  42. Thanks to you for such a great post.I visit your site regularly whenever i need some help in a topic or i need something.Your site is awesome.Keep Up the good work.

  43. John

    Have no problem to install everything, but got below error message after I typed in putty:

    iMac:~ John$ putty

    (putty:81604): Gtk-WARNING **: cannot open display:

  44. Cummings

    Opened PuTTY from the icon and got an error:

    (PuTTY:347): Gtk-WARNING **: cannot open display:
    logout

    Please Help
    Thank you

    • vemala

      Even i am getting (putty:44001): Gtk-WARNING **: cannot open display: .

      Please help to resolve it.

      • Derek Smith

        If have to install XQuartz, your device probably dont have X11. Install XQuartz, logout and do the putty command againt. It took me like an hour to solve all my errors!

  45. Chris

    After entering sudo port install putty, I received this message:

    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 puttyError: 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?

    • Derek Smith

      Go to the Preference on Xcode under Xcode at the downloads icon download the CL tools components.

  46. Nik Gibson

    I tried this on Snow Leopard today as I am trying to dump my PC and need putty for the tunnelling and terminal settings it provides and got this error:

    Sunspot-3:~ Nik$ putty
    Xlib: extension “RANDR” missing on display “/tmp/launch-Zx859V/org.x:0”.

    Any ideas anybody?

  47. Rajiv Verma

    Hi there,

    Its failed @ step “sudo port install putty” can you please help

    —> Fetching distfiles for jpeg
    —> Attempting to fetch jpegsrc.v9a.tar.gz from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/jpeg
    —> Verifying checksums for jpeg
    —> Extracting jpeg
    —> Applying patches to jpeg
    —> Configuring jpeg
    Error: Failed to configure jpeg, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_jpeg/jpeg/work/jpeg-9a/config.log
    Error: org.macports.configure for port jpeg returned: configure failure: command execution failed
    Error: Failed to install jpeg
    Please see the log file for port jpeg for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_jpeg/jpeg/main.log
    Error: The following dependencies were not installed: gtk2 gdk-pixbuf2 jasper jpeg pkgconfig tiff hicolor-icon-theme pango Xft2 harfbuzz graphite2 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: Processing of port putty failed

    • Rajiv Verma

      Apologies, Ignore above error. I manage to fix that and got below error

      $ putty
      (putty:33691): Gtk-WARNING **: cannot open display:

      To fix this I have installed XQuartz

  48. zyechun

    I’m sorry but Would you do me a favor?
    I installed putty and I enter “putty” and a result is

    songjuhong-ui-MacBook-Pro:~ songjuhong$ sudo port install putty
    —> Computing dependencies for putty
    —> Cleaning putty
    —> Scanning binaries for linking errors: 100.0%
    —> No broken files found.
    songjuhong-ui-MacBook-Pro:~ songjuhong$ putty

    (putty:21046): Gtk-WARNING **: cannot open display:
    songjuhong-ui-MacBook-Pro:~ songjuhong$

    what is wrong ????

  49. RonP

    Great walk-through of how to install PuTTY on the mac. Went without a hitch – I saw the Gtk warning on another website while googling this, so I wasn’t surprised by the warning and installed XQuartz.

  50. WAILIN

    Hi. I am new here. Tried to install putty on my macbook pro. mac os mavericks i have downloaded correct file but showing error. error goes like this.

    Macintosh:~ wailintun$ port -v selfupdate
    —> Updating MacPorts base sources using rsync
    receiving file list … done
    rsync: mkstemp “/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/.base.tar.MSZJ7J” failed: Permission denied (13)
    inflate returned -3 (19 bytes)
    rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/token.c(419) [receiver=2.6.9]
    rsync: connection unexpectedly closed (31 bytes received so far) [generator]
    rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [generator=2.6.9]
    Command failed: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
    Exit code: 12
    Error: Error synchronizing MacPorts sources: command execution failed
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

  51. Naveen

    Excellent !!! Thank you. I appreciate your step wise instructions.

  52. fawaz

    i have followed all the steps. now a Macport folder is in my application but i cant understand how to open putty and where to open it ???
    help plz

  53. I read a lot of interesting posts here. Probably you spend a lot of
    time writing, i know how to save you a lot of
    work, there is an online tool that creates high quality, SEO
    friendly posts in seconds, just search in google – laranitas free
    content source

  54. I read a lot of interesting articles here.
    Probably you spend a lot of time writing, i know how to save you
    a lot of work, there is an online tool that creates readable,
    SEO friendly posts in minutes, just type in google
    – laranitas free content source

  55. Daniel Navarro Abarca

    Error: Processing of port putty failed after sudo port install putty… any help?

  56. nick

    i installed XQuartz and still does not work any help would be much appreciated

  57. Abhed

    Installation went well, while starting putty, I get this error:

    (process:4925): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback ‘C’ locale.

    (putty:4925): Gtk-WARNING **: cannot open display:

  58. Suresh Dube

    I have installed mac port successfully. However when i ran ‘sudo port -v selfupdate’, it gives me beow error,

    Updating MacPorts base sources using rsync
    receiving file list … done
    base.tar
    WARNING: base.tar failed verification — update discarded (will try again).
    rsync: read errors mapping “/tarballs/base.tar” (in release): No data available (61)
    base.tar

    sent 135358 bytes received 472446 bytes 18143.40 bytes/sec
    total size is 27013120 speedup is 44.44
    rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(1400) [generator=2.6.9]
    Command failed: /usr/bin/rsync -rtzv –delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
    Exit code: 23
    Error: Error synchronizing MacPorts sources: command execution failed
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed.

    I am using OSX 10.10.6 and xcode 6.4

  59. I have OSX 10.10.5 and xcode 6.3.1 … I did the DMG install like I would anything else. I closed xterm and re-opend and its not able to pass the self-update step.

  60. Stefano

    I can’t able to run putty obtained error command not found on yosemite 10.10
    I thing that is it a trouble with GTK because the putty installation it’s limited at only command line and not Putty Gui.
    How can resolve?

  61. Vasanthi

    I have followed the steps and installed putty. I get the below message if I try to install putty again.

    “Warning: putty-0.67 already installed”

    Now my question is how do I launch putty application that has been installed?

  62. Neil

    works great on my 10.11.6 el capitan.

    make sure to open Xcode after installing it, go to Preferences, then Locations tab, and ensure that in the Command Line Tools box you have selected the Xcode version. Mine did not have anything selected.

    Also, I restarted everything after installation of all tools.

  63. paul

    Putty installed no problem but when i type in putty at the command line it tells me it can’t be found.

    I do a whereis putty and nothing.

    I went to /usr/local/Celler/putty/0.67/bin and there are programs in theres (pscp, puttyge, psftp, and plink) but i can’t log into a remote machine.

    Can anyone tell me what i am doing wrong.

    Cheers

  64. Andy

    All went well with x code download etc. however when executing putty via the shortcut command or via terminal by simply typing putty, a error window opens saying (putty:1295):Gtk-WARNING**:cannot open display

    • Zip

      I’m getting essentially the same error as Andy. `(putty:36407): Gtk-WARNING **: cannot open display:` . Anybody know whats going on, and what is a potential fix?

  65. adab

    Error: Failed to archivefetch boost: Failed to fetch signature for archive: The requested URL returned error: 500 Internal Server Error
    Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost/boost/main.log for details.
    Error: Follow https://guide.macports.org/#project.tickets to report a bug.
    Error: Processing of port putty failed

  66. Ola

    Please help with this error that froze Putty and made it not to respond anymore after inputting exit command.
    error:
    (PuTTY:3584): Gtk-WARNING **: cannot open display:
    logout
    Saving session…
    …copying shared history…
    …saving history…truncating history files…
    …completed.

    [Process completed]

    Thanks

  67. Himanshu Joshi

    Getting below error :

    rsync: read error: Operation timed out (60)
    rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/io.c(604) [receiver=2.6.9]
    Command failed: /usr/bin/rsync -rtzvl –delete-after rsync://rsync.macports.org/macports/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
    Exit code: 12

Leave a Reply

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

I'm a photographer and business owner in Portland, Oregon. Yes, we moved here because we watched Portlandia, and because, mountains. My background includes web hosting and marketing. Feel free to ask me any questions about the articles on this website by using the contact page. Also please visit our sponsor: Unlimited VPN Service to increase your online privacy for as low as $5 a month!

61,199 views98 comments