Chinaunix首页 | 论坛 | 博客
  • 博客访问: 598189
  • 博文数量: 239
  • 博客积分: 7941
  • 博客等级: 准将
  • 技术积分: 2467
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-10 12:14
个人简介

及时当勉励

文章分类

全部博文(239)

文章存档

2013年(29)

2011年(22)

2010年(188)

分类:

2010-06-18 00:53:08

    郁闷,就实现第一个源程序,浪费了几个小时的时间。
 关键是没有看明白README。
 QUICK AND DIRTY
===============

Execute the following from the src/ directory:

    ./configure    # try to figure out all implementation differences

    cd lib         # build the basic library that all programs need
    make           # use "gmake" everywhere on BSD/OS systems

    cd ../libfree  # continue building the basic library
    make

    cd ../libroute # only if your system supports 4.4BSD style routing sockets
    make           # only if your system supports 4.4BSD style routing sockets

    cd ../libxti   # only if your system supports XTI
    make           # only if your system supports XTI

    cd ../intro    # build and test a basic client program
    make daytimetcpcli
    ./daytimetcpcli 127.0.0.1

If all that works, you're all set to start compiling individual programs.

Notice that all the source code assumes tabs every 4 columns, not 8.

MORE DETAILS
============



 上面已经说了,要先./configure. 不成功。直接进目录, 再往下就make就不行了,问题出现错误。后来把那些与库函数生定义的都注释,还是一大片错误,我用sudo 也不行。
  后来用 ll  命令一看 configure文件没有执行命令,为了方便,直接chmod 755 *.可以了,不过运行第一个程序的时候,问题出现 
connect error: Connection refused
查了半天资料也不成。

make daytimetcpcli
    ./daytimetcpcli 127.0.0.1

这样又可以了。

当然了,期间复杂度要更多,遇到问题更多,网站上面讲的也很多,当然我没有找到正确的。

看来英语不行,真是TMD大问题,连一个README都看不明白。白浪费了几个小时时间,可怜啊@
阅读(2243) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~