China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 19:36
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Original] How to Port Linux Programs for Use under DOS View 876 Replies 1
Original Poster Posted 2003-07-28 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Note: this article was written in English by moderator Sandy, and translated into Chinese by me, so everyone can share it:

The translation is as follows:

How to Port Linux Programs to the DOS platform

System requirements:
386+
DJGPP v2+

The application's source code should be in ".tar.gz" or "tar.bz2" format
That way, you can use bash (in djgpp-v2gnu, Wengier's note: bash is a command interpreter, equivalent to COMMAND.COM).

The dollar sign ($) is what we need to type:
If the source code is in ".tar.gz" format: $tar xzvf xxx-xxx.tar.gz
If the source code is in ".tar.bz2" format: $tar xjvf xxx-xxx.tar.bz2
Otherwise, Cry!!!

Then:
$cd xxx-xxx
$ls (Note: this command is used in BASH, equivalent to the DIR command)
If you find a script file "configure": $./configure
$make
If at this point there is an EXE executable file in this directory or one of its subdirectories, then the port was successful!!!
Otherwise, Cry!!!

(Sandy's note: Sorry, I'm too tired right now, so I don't want to type Chinese.)
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 2 Posted 2003-07-28 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
Wengier, AVP's antivirus disk is for Linux. Can it be ported into a DOS program?
Forum Jump: