中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: [介绍] DJGPP的安装文件 上一主题 | 下一主题
Wengier
系统支持

“新DOS时代”站长


积分 27734
发帖 10521
注册 2002-10-9
状态 离线
『楼 主』:  [介绍] DJGPP的安装文件

Guide: Installing DJGPP

OK, so you've got a directory full of ZIP files. Lots of megabytes, and no clue where to start! The first step is to decide what you want to do with djgpp - this tells you what to unzip. For each zip file, use either unzip or pkunzip -d to extract the files. If you forget the -d for pkzip, all the files will be in one directory, which is not what you want.

Once you select the zips you want (see the help below), you should unzip them all in the same directory. For the purposes of this Guide, we'll assume you chose C:\DJGPP (or c:/djgpp in unix parlance) as the directory. After unzipping them all, you'll see various directories:

bin
binaries (programs)
include
include files
lib
libraries
manifest
lists of what's in each zip
zoneinfo
timezone definitions (deleteable if you don't need them)
You might also have these:

src
djgpp sources
gnu
gnu sources
contrib
contributed toolkits
Now that you've got everything unzipped, there are two things you have to do to prepare your system to use djgpp:

Inside the djgpp directory there is a bin directory with all the programs in it. You must modify your PATH environment variable so that this directory is included. An example line in your AUTOEXEC.BAT file would looks like this:
set PATH=C:\DJGPP\BIN;%PATH%

Inside the djgpp directory is a file called djgpp.env. Don't modify it unless a package tells you to do so! You must add a new environment variable DJGPP that refers to this file:
set DJGPP=c:/djgpp/djgpp.env

Note that you can use upper or lower case here, and either forward (unix) or backward (dos) slashes. (Most DJGPP programs support both styles of slashes; however, being Unix ports, they might sometimes support forward slashes better. When in doubt, try forward slashes, like the example.)

--------------------------------------------------------------------------------

This next section lists the most popular (or most often forgotten) parts of DJGPP to install. Your distribution probably contains lots of other zips (when I wrote this, there were 106 separate zips!). Most of them have documentation explaining about themselves, so go poking around and see what you've got.

Basic Functionality
Everyone should install these, whether they need them or not. Why? Because it may not be obvious that you need it, but they're commonly referred to on the newsgroup. Also, note that the version you have may have newer version numbers in the file name; just use the newer file if that's the case.

v2/readme.1st
Everyone should read this file. It includes important information that is as up-to-date as the zips, including a brief getting started section.

v2/djdev201.zip
You need this. This is the basic runtime and development package, and includes such things as the include files, C libraries, standard utilities, FPU emulator, and timezone definition files.

v2/faq210b.zip
The frequently asked questions file. Before you ask anyone else, read the FAQ!

v2gnu/txi390b.zip
This includes the info.exe program, which lets you read the online documentation. Run "info" to start the online document system.

v2gnu/gcc2721b.zip
This is the C compiler. It also includes the pre-processor, which many other languages use, and the GNU compiler support library, which nearly all programs will need.

v2gnu/bnu27b.zip
This is the assembler and linker, and a few other programs (like the librarian). You'll need these for all languages.

v2gnu/mak375b.zip
Make is a program that keeps track of how to build your programs in the least number of required steps. Not everyone uses it, but it's strongly recommended.

v2misc/csdpmi3b.zip
You'll need this if you're running under plain DOS. DJGPP requires a DPMI server. Windows, OS/2, and Linux provide one, as does QDPMI and 386MAX. If you have none of these, get this file, which includes cwsdpmi.exe - our own free DPMI server.

Other Languages
The basic functionality allows you to write C programs, but DJGPP supports much more than that.

v2gnu/bsn124b.zip
Bison is a yacc replacement. You'll need this to compile language grammars (*.y).

v2gnu/flx252b.zip
Flex is a lex replacement. You'll need this to compile lexical parsers (*.l).

v2gnu/gpc20b.zip
Pascal compiler.

v2gnu/gpp2721b.zip
C++ compiler.

v2gnu/lgp271b.zip
C++ libraries. You'll need these if you use streams, the GNU class library, etc.

v2gnu/obc2721b.zip
Objective C compiler.

Programming Utilities and Helpers
These zips contain programs that will help you write your source, or port existing packages from unix.

v2apps/rhide13b.zip
This is an Integrated Development Environment, which combines editor, compiler, online help, and debugger all in one easy to use interface. It's probably the best place to start if you're new to command-line compilers.

v2gnu/em1934*.zip
GNU Emacs. This is the preferred text editor for many hard-core Unix programmers. You can also invoke the compiler or make from within, as well as read the online documentation and play games. You'll need to install all these zips; read the emacs.README first.

v2gnu/gdb416b.zip
The GNU debugger. This is an extremely powerful full symbolic debugger, but you'd best read the docs before trying to use it.

v2gnu/bsh1147b.zip
Bash is GNU's ``bourne-again shell'', a replacement for the popular /bin/sh and Korn shell. You'll need this for some unix programs that have shell scripts; some people use it as their default shell instead of COMMAND.COM.

Ports of Unix programs

v2gnu/fil313b.zip
GNU Fileutils, including ls, rm, cp, mv, and others. Highlights of the latest port: ls supports colorization of files (like on Linux), ln -s knows about DJGPP-style "symlinks" (see symlink feature of DJGPP in the FAQ), install -s will strip executables on the fly, and all the utilities support long filenames on Windows 9x and numbered backups (even on plain DOS). This package is a must if you want to run Unix shell scripts, as they use some of these utilities a lot.

v2gnu/shl112b.zip
GNU Shell utilities. A must if you use the port of bash or want to run Unix Makefiles, but some utilities (such as env or test) can also be very useful on their own right.

v2gnu/txt119b.zip
GNU Textutils. Includes many useful programs, such as sort, wc, cat, join, paste, od, and uniq. Unix shell scripts and Makefiles call some of these a lot, so you should install this package if you run them.

v2gnu/gzp124b.zip
The GNU compression utilities, gunzip, gzcat, and gzip

v2gnu/dif271b.zip
GNU Diffutils (diff, cmp, diff3, sdiff), and their docs. If you need to submit patches or changes to DJGPP or GNU sources, you will need the GNU diff program from this package.

v2gnu/sed118b.zip
GNU sed (a stream editor) program and its docs. Many ported packages require it during the build process on MSDOS.

v2gnu/grep20b.zip
GNU grep package and its docs. You need this if you use emacs (which has commands that invoke grep) or if you want to run Unix shells and Makefiles.

v2gnu/find41b.zip
GNU find allows you to locate files on your hard drive and do interesting things with them (bigram code find frcode locate xargs)

v2gnu/gwk302b.zip
GNU awk

v2gnu/lss321b.zip
GNU less

v2gnu/pat21b.zip
GNU patch program and docs. Required to apply patches to DJGPP sources.

Toolkits
These zips contain various libraries of pre-compiled functions. You don't need these, but they can speed up program development if one of them does something useful for you.

v2tk/alleg21.zip
Allegro is a game library, including sound, joystick, mouse, and video routines. Very popular.

v2tk/bccgrx20.zip
This module lets you compile programs that use Borland's graphics functions. You'll need grx also.

v2tk/grx20.zip
DJGPP's base graphics library.

v2tk/jptui37d.zip
A textual user interface kit.

v2tk/pdc22.zip
Public Domain Curses emulation, for porting Unix programs.

v2tk/rsxntdj1.zip
Use this to write Win95 and WinNT programs with DJGPP.

v2tk/tvisionb.zip
For porting TurboVision programs.

v2tk/sw21_dj2.zip
v2tk/sw21_doc.zip
v2tk/sw21_p1.zip
v2tk/sw21_p2.zip
C++ GUI that provides a NeXT-like windowing interface.

Sources
Nearly all the zips include a second zip that has the sources in it. For zips that end in b.zip, the sources are in a corresponding s.zip. Some exceptions are listed here.

v2/djlsr201.zip
Sources to DJGPP's C library, core utilities, and runtime support. If you have the disk space, it's worth it to download and install these for two reasons. First, they're a good learning resource. Second, you can fix bugs if you find them.

v2/djtst201.zip
Sources for programs that are used to test the C library; not general purpose test programs but they to demostrate much of the functionality.




Wengier - 新DOS时代

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

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

2003-5-14 00:00
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (29206679)  编辑帖子  回复  引用回复
Dark-Destroy
元老会员





积分 8312
发帖 3551
注册 2003-3-22
状态 离线
『第 2 楼』:  

我看請anyhow來翻譯好囉!!



MSN:tiqit2@hotmail.com
2003-5-14 00:00
查看资料  发送邮件  访问主页  发短消息 网志   编辑帖子  回复  引用回复
红色狂想
金牌会员

龙哥DOS


积分 4289
发帖 1501
注册 2003-2-23
来自 河南省
状态 离线
『第 3 楼』:  

这我可看不懂!



C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
C++   ☆☆☆ 中国DOS联盟成员 ☆☆☆    C++
C++    ★★★ 爱提问的红色狂想 ★★★     C++
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
2003-5-14 00:00
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (189236106)  编辑帖子  回复  引用回复
Wengier
系统支持

“新DOS时代”站长


积分 27734
发帖 10521
注册 2002-10-9
状态 离线
『第 4 楼』:  

Roy等人也都是E文高手呢!



Wengier - 新DOS时代

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

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

2003-5-16 00:00
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (29206679)  编辑帖子  回复  引用回复
ATLaS
初级用户




积分 169
发帖 29
注册 2003-7-9
状态 离线
『第 5 楼』:  

rhide大家用的习惯吗?虽然和borland的ide很像,但前段时间写watcom c的dos程序习惯了,对ide有排斥,呵呵。
我现在用vim 6.2 for dos (32-bit),感觉很不错,跟linux下的几乎一模一样了。大家有兴趣可以试试,呵呵。www.vim.org,在dos下用需要下载两个zip文件:runtime和d32。解开即可。因为djgpp带dpmi host,所以不需要额外的任何软件包了。

2003-7-9 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
Wengier
系统支持

“新DOS时代”站长


积分 27734
发帖 10521
注册 2002-10-9
状态 离线
『第 6 楼』:  

好呀。。

VIM的Runtime的下载地址是:
ftp://ftp.vim.org/pub/vim/pc/vim62rt.zip

VIM的DOS32执行文件的下载地址是:
ftp://ftp.vim.org/pub/vim/pc/vim62d32.zip



Wengier - 新DOS时代

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

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

2003-7-10 00:00
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (29206679)  编辑帖子  回复  引用回复
garychang
初级用户




积分 136
发帖 9
注册 2003-6-30
状态 离线
『第 7 楼』:  

裝起來是沒問題,但用GCC & GPP 3.0以上就會有編譯的問題了。
(請按我,還是沒有解決)

2003-7-11 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
沈洁
金牌会员

小飞侠


积分 4590
发帖 1812
注册 2003-4-2
来自 上海市
状态 离线
『第 8 楼』:  

顶一下!



2003-7-14 00:00
查看资料  发送邮件  发短消息 网志  OICQ (49662411)  编辑帖子  回复  引用回复
LanE
银牌会员




积分 1832
发帖 647
注册 2002-11-8
状态 离线
『第 9 楼』:  

VIM我自己编译了一个,在DOS下的版本
VIM的makefile写的比较全的

2003-7-14 00:00
查看资料  发送邮件  发短消息 网志  OICQ (9367907)  编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: