Question

I would like to instal putty with use of Homebrew. I'm performing the following command:

brew install putty

which gives the seemingly correct output:

==> Downloading https://homebrew.bintray.com/bottles/putty-0.67.el_capitan.bottle.tar.gz
Already downloaded: /Users/thisuser/Library/Caches/Homebrew/putty-0.67.el_capitan.bottle.tar.gz
==> Pouring putty-0.67.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/putty/0.67: 11 files, 1.5M

However, the putty command is not recognised:

thisuser-541/41:~$ putty
-bash: putty: command not found
Was it helpful?

Solution

Update: Current stable version (.67) of putty can't be build with gtk+2 support on OS X using homebrew. This is a know issue #40951. It seems you can install from HEAD version (brew install --HEAD --with-gtk+3 putty) and for me that is also broken.

brew install putty by default installs from a pre-built bottle. The pre-built bottle for putty doesn't include putty, puttytel or pterm.

If you want putty then can try installing from source. First remove the installed putty formula by running brew remove putty. After that install putty from source by running brew install --build-from-source --with-gtk+3 putty.

NOTE: As of this writing building putty from source is broken with homebrew

If someone is getting an error like this: invalid option: --with-gtk+3, all installation options are removed with the latest version of the brew. source

OTHER TIPS

On Catalina the putty formula only installs 4 helper tools and not the application.

MD5 (plink) = d16fd757c526aa77f760f6e1f3a2cd50
MD5 (pscp) = cbae18d5ca00b3f43db502d4c826316a
MD5 (psftp) = b1568055518b21e9612984558ca7192f
MD5 (puttygen) = 9001883be59e4956e06bb1eaa8f189bd

You probably want to use screen and scp / ssh over putty unless you have a very specific need. In this question, there's no explanation of what putty will do, so feel free to ask a follow on question explaining how you intend to use putty on Catalina and link here if you think I could be of use in answering a related question.

When I say "on Catalina" I'm referring to this build:

mike@me bin % brew info putty
putty: stable 0.73 (bottled), HEAD
Implementation of Telnet and SSH
https://www.chiark.greenend.org.uk/~sgtatham/putty/
Conflicts with:
  pssh (because both install `pscp` binaries)
/usr/local/Cellar/putty/0.73 (12 files, 1.9MB) *
  Poured from bottle on 2020-05-16 at 07:11:14
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/putty.rb
==> Dependencies
Build: pkg-config ✔
==> Options
--HEAD
    Install HEAD version
==> Analytics
install: 8,542 (30 days), 26,477 (90 days), 105,520 (365 days)
install-on-request: 8,442 (30 days), 26,142 (90 days), 103,075 (365 days)
build-error: 0 (30 days)

Putty can be installed with three easy steps:

1. First Open the terminal
2. Install the homebrew
3. Run command "brew install putty"

You can get the detailed steps at BrewInstall Search for any mac app or packages here and get steps to install it.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top