PuTTY on Linux: Clipboard Issue (Copy/Paste)

support for CLIPBOARD selection
4.11.4 Assigning copy and paste actions to clipboards



$ dpkg-query -L putty
/.
/usr
/usr/bin
/usr/bin/pageant
/usr/bin/putty
/usr/share
/usr/share/applications
/usr/share/applications/putty.desktop
/usr/share/doc
/usr/share/doc/putty
/usr/share/doc/putty/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/pageant.1.gz
/usr/share/man/man1/putty.1.gz
/usr/share/menu
/usr/share/menu/putty
/usr/share/pixmaps
/usr/share/pixmaps/putty.png
/usr/share/pixmaps/putty.xpm
/usr/share/doc/putty/changelog.Debian.gz


$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for ranlib... ranlib
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/andreas/Downloads/putty-0.71':
configure: error: C compiler cannot create executables
See `config.log' for more details


$ sudo apt-get install build-essential
$ sudo apt-get install coreutils
$ sudo apt-get install autoconf automake groff libtool

$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for ranlib... ranlib
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc option to accept ISO C99... none needed
checking for utmpx.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GTK+ - version >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for gtk-config... absent
checking for library containing socket... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for library containing dlopen... -ldl
checking for XOpenDisplay in -lX11... no
checking for getaddrinfo... yes
checking for posix_openpt... yes
checking for ptsname... yes
checking for setresuid... yes
checking for strsignal... yes
checking for updwtmpx... yes
checking for fstatat... yes
checking for dirfd... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking for library containing clock_gettime... none required
checking for SO_PEERCRED and dependencies... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating uxconfig.h
config.status: executing depfiles commands

'configure' was unable to find any version of the GTK libraries on
your system. Therefore, PuTTY itself and the other GUI utilities will
not be built by the generated Makefile: only the command-line tools
such as puttygen, plink and psftp will be built.

$ sudo apt-get install libgtk-3-dev

$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $ dpkg-query -L putty
/.
/usr
/usr/bin
/usr/bin/pageant
/usr/bin/putty
/usr/share
/usr/share/applications
/usr/share/applications/putty.desktop
/usr/share/doc
/usr/share/doc/putty
/usr/share/doc/putty/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/pageant.1.gz
/usr/share/man/man1/putty.1.gz
/usr/share/menu
/usr/share/menu/putty
/usr/share/pixmaps
/usr/share/pixmaps/putty.png
/usr/share/pixmaps/putty.xpm
/usr/share/doc/putty/changelog.Debian.gz
$(MAKE)... yes
checking whether make supports nested variables... yes
checking for ranlib... ranlib
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc option to accept ISO C99... none needed
checking for utmpx.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... yes (version 3.22.30)
checking for pango_font_family_is_monospace... yes
checking for pango_font_map_list_families... yes
checking for library containing socket... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for library containing dlopen... -ldl
checking for XOpenDisplay in -lX11... yes
checking for getaddrinfo... yes
checking for posix_openpt... yes
checking for ptsname... yes
checking for setresuid... yes
checking for strsignal... yes
checking for updwtmpx... yes
checking for fstatat... yes
checking for dirfd... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking for library containing clock_gettime... none required
checking for SO_PEERCRED and dependencies... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating uxconfig.h
config.status: executing depfiles commands

$ make
make  all-am
[...] 
make[1]: Leaving directory '/home/andreas/Downloads/putty-0.71'

$ ./putty

Leave a Reply

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