中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-12 19:29
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行
DOS学习入门 & 精彩文章 (教学室) » [原创]How to port linux applications to DOS
可打印版本  745 / 4
第1楼 Sandy 发表于 2003-07-27 00:00
元老会员 发帖 157 积分 608
[原创]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
第2楼 Wengier 发表于 2003-07-28 00:00
系统支持 发帖 10,521 积分 27,736
确实是好文章!这个对DOS以后的发展相当重要!如果能用此方法成功地将整个X-Window平台Port到DOS下的话,那。。DOS世界将变得多么美好。。

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


第3楼 Sandy 发表于 2003-07-28 00:00
元老会员 发帖 157 积分 608
Ding
Who can translate i into zh?
第4楼 LanE 发表于 2003-07-28 00:00
银牌会员 发帖 648 积分 1,835
大概的意思就是用djgpp编译Linux下的程序的源代码吧
据说djgpp是dos下的gcc,成功的可能性应该比较大吧。
第5楼 Wengier 发表于 2003-07-28 00:00
系统支持 发帖 10,521 积分 27,736
已成功翻译成中文!!请看:
http://www2.zzu.edu.cn/ie/newdos/dispbbs.asp?boardID=12&ID=5443



[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023