How to install Putty on Mac (OS X El Capitan)

The following steps have been tested on OS X El Capitan.

1. Install Xcode

2. Install Command Line Tools
Launch the terminal, found in /Applications/Utilities , type this command :

xcode-select –install

img1

img2

img3

3.Download and install MacPorts

4.sudo port -v selfupdate

Screen Shot 2016-01-25 at 12.22.55 PM.png

5. type this command sudo port install putty

6. Type Putty into terminal

7. create a shortcut cp /opt/local/bin/putty ~/Desktop/PuTTY

55 thoughts on “How to install Putty on Mac (OS X El Capitan)

  1. TIP: “sudo port install putty”… this will take a long time if you are installing it for the first time…. and make sure you are connected to the internet

    Liked by 3 people

      • In steps 4 onward, you type those commands into the terminal mentioned in step 2, found in Applications > Utilities folder.

        However, some people report this process works better if you have closed and re-opened the terminal after the MacPorts step in step 3.

        Like

  2. Hello,
    When I try to run putty it gives me this message:

    $ putty

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

    (putty:2660): Gtk-WARNING **: cannot open display:
    XXXXX-MacBook-Pro:~ xxxxxxx$

    Any idea what to do?

    Cheers

    Like

    • I am also on Sierra and it is telling me it can not open display. It did prompt me for python and python2 which I chose 2 after looking them up. Did it prompt you for these things? I just find it strange to not work for me but work for you and thought maybe you could give some insight.

      Like

  3. I have installed the putty successfully, but I can not input commands in the interface of putty, what’s the problem

    Like

  4. I see the following error when I type Putty into the Terminal.

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

    Like

  5. The ports tree has been updated. To upgrade your installed ports, you should run
    port upgrade outdated
    Vincents-MacBook-Pro:~ vincentifezue$ sudo port install putty
    —> Computing dependencies for putty
    —> Cleaning putty
    —> Scanning binaries for linking errors
    —> No broken files found.
    —> No broken ports found

    (PuTTY:2648): Gtk-WARNING **: 12:38:28.148: cannot open display:
    logout
    Saving session…
    …copying shared history…
    …saving history…truncating history files…
    …completed.

    [Process completed]

    my putty not working after following the whole proccedure

    Like

  6. What do I do now?

    (PuTTY:20331): Gtk-WARNING **: 14:26:55.429: cannot open display:
    logout
    Saving session…
    …copying shared history…
    …saving history…truncating history files…
    …completed.

    [Process completed]

    Like

  7. Installing XQuartz is sufficient to run PUTTY on MacOS. Once XQuartz is installed, launch the application. Right-click on the X icon and go to “Applications” and select “terminal”. Once you open terminal, you can launch the putty application by just “putty” command. Tried and Tested this.

    Like

  8. After installing everything am still getting this

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

    Like

  9. After the sudo port install putty
    I type in Putty im getting:
    (Putty:4404): Gtk-WARNING **: 15:03:32.658: cannot open display:

    Like

  10. —> Computing dependencies for putty
    —> Cleaning putty
    —> Scanning binaries for linking errors
    —> No broken files found.
    —> No broken ports found.

    cp /opt/local/bin/putty ~/Desktop/Putty

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

    (putty:1111): Gtk-WARNING **: 19:45:59.939: cannot open display:

    Like

  11. I am facing this error. Can anyone please help here.

    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 /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106) [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: 10

    Like

  12. installed and working on into Mojave, but i cant paste into the session, kinda sucks to have to type in everything.

    Like

  13. Hello, is there any solution for this error after installation?

    (PuTTY:27815): Gtk-WARNING **: 13:04:02.459: cannot open display:
    logout
    Saving session…
    …copying shared history…
    …saving history…truncating history files…
    …completed.

    Like

  14. % Putty

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

    (Putty:91389): Gtk-WARNING **: 01:28:31.093: cannot open display:
    alfia@Mds-MacBook-Air ~ %

    Tried a lot, but couldnot fixit

    Like

  15. Terminal Window :
    Set display:
    export DISPLAY=”:0″

    run X11:
    Applications -> Utilities -> X11
    Terminal

    export LC_ALL=”en_US.UTF-8″

    $Putty

    Everything fine !

    Like

  16. LTB0045819-MAC:~ b0045819$ putty

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

    (putty:85171): Gtk-WARNING **: 10:03:51.743: cannot open display:

    Like

  17. Awesome Guide/How-To !

    FYI…With OSX 10.15.6 Catalina OS, Putty works perfectly okay by simply following the instructions.

    just simple 3 pieces to it

    Xcode from the App Store
    Command_Line_Tools_for_Xcode_11.5.dmg
    XQuartz-2.7.11.dmg

    + the following commands
    sudo port -v selfupdate
    sudo port install putty
    [RESTART]
    Putty
    cp /opt/local/bin/putty ~/Desktop/PuTTY

    Cheers 😉

    Liked by 1 person

  18. Hi there– trying to install putty on MAC OS Monterey. After install macports and putty, when I try to open putty I get the following error:

    (Putty:3470): Gtk-WARNING **: 22:16:24.893: cannot open display:

    I tried restarting the terminal and also rebooted my MAC, still the same issue.

    can anyone please provide a resolution for this issue?

    Running Xcode 14.0.1 and same command line version

    Like

Leave a comment