啊o额iu鱼吧 关注:170贴子:7,396

回复:【c++】一次诡异的源码安装,各种报错……

取消只看楼主收藏回复

我猜,是debian的ncurses的问题,于是我还是找ncurses的源码包来安装下,
然后发现,源码安装vim的时候就要用到ncurses,
debian仓库里的vim 居然不用,果然有问题……
源码安装好慢,把显示去掉>/dev/null应该会快点,
不愧是gun自己的东西,没有报错,只有四个一样的warning,
返回值没用上,这没什么关系……
../test/redraw.c:116:12: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
system("date");


IP属地:广东18楼2014-12-31 11:54
回复
    重装了ncurses,不行,但是发现了,那个函数是在ncurses这个库里,我想在makefile里加上-lncurses,莫名的怎么搞不行,
    于是怒了,cd src,进去自己编译这句,自己给加上-lncurses……
    g++ -funsigned-char -O2 -DNDEBUG -Wall -o zhcon basefont.o big52gbdecoder.o big5decoder.o configfile.o console.o gb2big5decoder.o gbdecoder.o gbkdecoder.o graphdev.o hzdecoder.o jisdecoder.o kscdecoder.o main.o window.o winime.o zhcon.o overspotclient.o nativeinputserver.o inputclient.o inputmanager.o inputserver.o candilist.o uniconinputserver.o nativebarclient.o mouse.o encfilter.o iconv_string.o cmdline.o display/libdisplay.a -limm_server -limmclient -ldl -lutil -lncurses


    IP属地:广东19楼2014-12-31 12:38
    回复
      貌似那个就是最后一个错误了,多make一次检查下……
      root@aoeiuv-K42JE:/home/aoeiuv/zhcon/zhcon-0.2.5# make
      make all-recursive
      make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
      Making all in src
      make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
      Making all in display
      make[3]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src/display'
      make[3]: Nothing to be done for `all'.
      make[3]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src/display'
      make[3]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
      make[3]: Nothing to be done for `all-am'.
      make[3]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
      make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
      Making all in doc
      make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/doc'
      make[2]: Nothing to be done for `all'.
      make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/doc'
      Making all in input
      make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/input'
      make[2]: Nothing to be done for `all'.
      make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/input'
      Making all in font
      make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/font'
      make[2]: Nothing to be done for `all'.
      make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/font'
      Making all in debian
      make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/debian'
      make[2]: Nothing to be done for `all'.
      make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/debian'
      Making all in tools
      make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/tools'
      make[2]: Nothing to be done for `all'.
      make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/tools'
      make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
      make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
      make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
      root@aoeiuv-K42JE:/home/aoeiuv/zhcon/zhcon-0.2.5#


      IP属地:广东20楼2014-12-31 12:39
      回复
        最后install,没有意外,
        root@aoeiuv-K42JE:/home/aoeiuv/zhcon/zhcon-0.2.5# make install
        Making install in src
        make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
        Making install in display
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src/display'
        make[3]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src/display'
        make[3]: Nothing to be done for `install-exec-am'.
        make[3]: Nothing to be done for `install-data-am'.
        make[3]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src/display'
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src/display'
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
        make[3]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
        test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
        /usr/bin/install -c 'zhcon' '/usr/local/bin/zhcon'
        chmod 4755 /usr/local/bin/zhcon
        /bin/bash ../mkinstalldirs /usr/local/etc
        /usr/bin/install -c -m 644 ./zhcon.conf /usr/local/etc/zhcon.conf
        make[3]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
        make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/src'
        Making install in doc
        make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/doc'
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/doc'
        make[2]: Nothing to be done for `install-exec-am'.
        /bin/bash ../mkinstalldirs /usr/local/man/man1/
        mkdir /usr/local/man/man1
        /usr/bin/install -c -m 644 ../doc/zhcon.1 /usr/local/man/man1/zhcon.1
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/doc'
        make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/doc'
        Making install in input
        make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/input'
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/input'
        make[2]: Nothing to be done for `install-exec-am'.
        /bin/bash ../mkinstalldirs /usr/local/lib/zhcon/input/
        mkdir /usr/local/lib/zhcon
        mkdir /usr/local/lib/zhcon/input
        /usr/bin/install -c -m 644 ./*.mb /usr/local/lib/zhcon/input/
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/input'
        make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/input'
        Making install in font
        make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/font'
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/font'
        make[2]: Nothing to be done for `install-exec-am'.
        /bin/bash ../mkinstalldirs /usr/local/lib/zhcon/font/
        mkdir /usr/local/lib/zhcon/font
        /usr/bin/install -c -m 644 ./*.bpsf /usr/local/lib/zhcon/font/
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/font'
        make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/font'
        Making install in debian
        make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/debian'
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/debian'
        make[2]: Nothing to be done for `install-exec-am'.
        make[2]: Nothing to be done for `install-data-am'.
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/debian'
        make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/debian'
        Making install in tools
        make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/tools'
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5/tools'
        make[2]: Nothing to be done for `install-exec-am'.
        make[2]: Nothing to be done for `install-data-am'.
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/tools'
        make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5/tools'
        make[1]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
        make[2]: Entering directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
        make[2]: Nothing to be done for `install-exec-am'.
        make[2]: Nothing to be done for `install-data-am'.
        make[2]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
        make[1]: Leaving directory `/home/aoeiuv/zhcon/zhcon-0.2.5'
        root@aoeiuv-K42JE:/home/aoeiuv/zhcon/zhcon-0.2.5#


        IP属地:广东21楼2014-12-31 12:40
        回复
          然后就有了,KO……


          IP属地:广东来自Android客户端22楼2014-12-31 12:56
          回复
            但是还有问题,光标残留,还有cat不出中文文件……
            也罢就这样……


            IP属地:广东来自Android客户端23楼2014-12-31 12:57
            回复
              源码安装gcc可能还有更多问题,这也算是准备了……


              IP属地:广东来自Android客户端24楼2014-12-31 12:58
              回复