Board logo

标题: [原创]How to port linux applications to DOS [打印本页]

作者: sandy     时间: 2003-7-27 00:00    标题: [原创]How to port linux applications to DOS

System requirements:
386+
djgpp2+
The source code of the application should in ".tar.gz" or ".tar.bz2" format
So. you can use BASH(in djgpp-v2gnu)
After dollar symbol is what we input
If the source is a ".tar.gz"
      Then $tar xzvf xxx-xxx.tar.gz
      ElseIf it's a bz2)
           $tar xjvf xxx-xxx.tar.bz2
      Else
           Cry!!!!!!!!
$cd xxx-xxx
$ls (It's a POSIX command means DIR)
If there is a "configure" script
        Then $./confiure (MAKE SURE SH IS A COPY OR SYMBOLLIC LINK TO BASH!)
$make
If in the dir or in its subdirs there is an exe file
         Then Port Complete!
         Else Cry!!!!!!!
Sorry, i'm tired so i don wantto type chinese
作者: Wengier     时间: 2003-7-28 00:00
确实是好文章!这个对DOS以后的发展相当重要!如果能用此方法成功地将整个X-Window平台Port到DOS下的话,那。。DOS世界将变得多么美好。。

不过我在DOS下的DJGPP/bash中不管输入dir还是ls命令时(其它的命令倒没有问题),怎么总出现“bash: ls: command not found”的错误呀?


[此贴子已经被作者于2003-7-28 4:50:36编辑过]



作者: sandy     时间: 2003-7-28 00:00
Ding
Who can translate i into zh?
作者: LanE     时间: 2003-7-28 00:00
大概的意思就是用djgpp编译Linux下的程序的源代码吧
据说djgpp是dos下的gcc,成功的可能性应该比较大吧。
作者: Wengier     时间: 2003-7-28 00:00
已成功翻译成中文!!请看:
http://www2.zzu.edu.cn/ie/newdos/dispbbs.asp?boardID=12&ID=5443



[此贴子已经被作者于2003-7-29 23:34:13编辑过]