zoukankan      html  css  js  c++  java
  • linux下 putty 的痛苦编译之路

    编译目录 /putty-版本/unix

    下载地址:http://www.putty.nl/download.html

    1、./configure

    安装以来环境:

    sudo apt-get install libgtk2.0-dev libglib2.0-dev

    问题:

    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

    配置 gtk-config

    路径:/usr/local/bin/gtk-config

    内容:

                #!/bin/sh

                module="gtk+-2.0"

                if test "$1" = "--version"; then

                        pkg-config --modversion $module

                else

                        pkg-config $* $module

                fi

    权限:chmod +x gtk-config

    问题:

    *** The gtk-config script installed by GTK could not be found

    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in

    *** your path, or set the GTK_CONFIG environment variable to the

    *** full path to gtk-config.

    2.编译出带界面的putty

    命令:make -f Makefile.gtk

    修改文件:./unix/Makefile.gtk

    问题:由于警告报的错误

                cc1: all warnings being treated as errors

                Makefile.gtk:343: recipe for target 'gtkfont.o' failed

                make: *** [gtkfont.o] Error 1

    如果有不同的需求可以选择编译文件:

    3、编译文件:

    命令:make install

    4、启动:

    命令:putty


     





  • 相关阅读:
    Maven配置--《maven实战》读书笔记
    设置定时任务
    C#中的==
    C# lock的应用
    JDK和JRE
    末尾不以.OK文件结尾的正则表达式匹配
    ftp访问空目录的返回
    正则表达式的结尾匹配
    匿名对象和匿名类
    匿名内部类的调用
  • 原文地址:https://www.cnblogs.com/linuxone/p/5527641.html
Copyright © 2011-2022 走看看