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
3.Download and install MacPorts
4.sudo port -v selfupdate
5. type this command sudo port install putty
6. Type Putty into terminal
7. create a shortcut cp /opt/local/bin/putty ~/Desktop/PuTTY
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
LikeLiked by 3 people
For the 4th step it doesn’t say where to type “sudo port -v selfupdate”. Can some one tell me what to do at this step?
LikeLiked by 1 person
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.
LikeLike
make sure you also install X11 from here – http://xquartz.macosforge.org/landing/
thats the UI for putty
LikeLiked by 2 people
thanks! this solved my problem. if not install X11, while run putty, it always show ” can’t open display”!
LikeLiked by 1 person
need new update .. im on big sur
LikeLike
Isnt there a simpler way?
LikeLike
After Installing MacPorts, it still says common not found for “port”.
Suggestions?
LikeLiked by 1 person
Hi,
you can check from this https://guide.macports.org/#installing.macports
hope it helps.
LikeLike
export DISPLAY=:0.0 after installing http://xquartz.macosforge.org/landing/
LikeLike
Also, u will need to log off and log in after installing xquartz, then go terminal => Putty.
LikeLike
I’m not sure if you have solved your problem already, but simply quitting terminal and re-opening it, might do the trick. It worked for me.
LikeLike
You need to reboot the terminal….i spent half a day trying to figure out why port command is not working…after reboot, it worked
LikeLike
Yes, quit the Terminal application and restart it. It shouldn’t be necessary to restart your computer–only the Terminal app. Then the port command should work.
LikeLike
open a terminal, then write:
sudo nano /etc/paths
write your password
then copy and paste in to the bottom:
/opt/local/bin
https://superuser.com/questions/287713/sudo-port-command-not-found-after-installing-macports-on-snow-leopard
LikeLike
close your terminal and open a new one
LikeLike
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
LikeLike
I have the same issue. Did you ever figure out how to solve it?
LikeLike
I have the same issue… wat did you do to fix it ?
LikeLike
Did you manage to fix this?
LikeLike
I have the same issue…
LikeLike
Please make sure you are using XQuartz as your X11 Emulator. Then go ahead and either restart Mac or simply log out and log back in. That should resolve the issue.
LikeLike
Thanks a ton. You made my job easy on my new MAC machine. I am facing challenge with X11 now in Ubuntu. Hope i will address it soon.
LikeLike
Worked Perfectly for me on MAC OSX Sierra
The answer to Hirdayan question ( I think) is to exit your terminal and then open terminal again
LikeLiked by 1 person
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.
LikeLike
I see the following error when I type Putty into the Terminal.
(putty:17382): Gtk-WARNING **: cannot open display:
LikeLike
[…] PuTTY By all accounts I need PuTTY in order to use BlueBear – this is despite some confusion about whether this is redundant with a Mac, I have read vague suggestions that PuTTy has some functionality which Mac Terminal does not. The instructions I am following to install PuTTy are here: https://onvinetech.wordpress.com/2016/01/26/49/ […]
LikeLiked by 1 person
how long running the command sudo takes since the command has run for about an hour, it’s still not finished
LikeLike
I have installed the putty successfully, but I can not input commands in the interface of putty, what’s the problem
LikeLike
Me too. Any chance you figured it out?
LikeLike
I see the following error when I type Putty into the Terminal.
(putty:17382): Gtk-WARNING **: cannot open display:
LikeLike
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
LikeLike
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]
LikeLike
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.
LikeLike
Thank you so much you saved my life!
LikeLike
This the best answer. Thanks
LikeLike
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.
LikeLike
After the sudo port install putty
I type in Putty im getting:
(Putty:4404): Gtk-WARNING **: 15:03:32.658: cannot open display:
LikeLike
—> 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:
LikeLike
correct command on mac to open the installation dialog is:
xcode-select –install
LikeLike
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
LikeLike
installed and working on into Mojave, but i cant paste into the session, kinda sucks to have to type in everything.
LikeLike
haha buddy double right clic for copying and single click for pasting
its a trick
LikeLike
Same problem, (Putty:2426): Gtk-WARNING **: 18:19:05.300: cannot open display:
Anyone any idea how to solve this?
LikeLike
[…] https://onvinetech.wordpress.com/2016/01/26/49/装好了,但是显示不了,待解决 […]
LikeLike
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.
LikeLike
Perfect – worked like a charm on my Mac OS 10.15 / macOS Catilina 🙂
Also had to install the Xcode.
LikeLike
% 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
LikeLike
Terminal Window :
Set display:
export DISPLAY=”:0″
run X11:
Applications -> Utilities -> X11
Terminal
export LC_ALL=”en_US.UTF-8″
$Putty
Everything fine !
LikeLike
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:
LikeLike
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 😉
LikeLiked by 1 person
How to change die Font Size? Need a lense on my Mac
LikeLike
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
LikeLike
you have to download xquartz
LikeLike
I have MAC with with M2, after install putty I start it but only see a terminal not a GUI, any idea?
LikeLike