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


     





  • 相关阅读:
    shell
    regionMatches方法
    ==
    使用INTO子句创建新表
    数据库除运算
    数据库笛卡尔积运算
    人生格言
    刚开通~
    Nginx:413 Request Entity Too Large
    ORACLE 查看并修改最大连接数
  • 原文地址:https://www.cnblogs.com/linuxone/p/5527641.html
Copyright © 2011-2022 走看看