在服务器上运行的 Pascal 编译器
您有什么想法,如何在服务器上编译 pascal 文件(*.pas)?谢谢。
do you have any ideas, how to compile pascal file (*.pas) on the server? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有命名服务器类型,但 Free pascal ( http://www.freepascal.org ) 附带现在几乎所有 Linux 发行版,以及 FreeBSD 端口和 Mac OS X(x86+ppc + 64 位,通过 fink 或独立的 .dmg 安装程序)。
http://www.freepascal.org 上有常规的一体化安装程序
对于 Windows 和 Dos , 你想要更多像 RAD 编辑一样的 Delphi,你可能想要 Lazarus ( http://Lazarus.freepascal.org ,也适用于上述平台(dos 除外)
Solaris x86+sparc 存在,但还处于实验阶段。
如果是 Windows 服务器,Delphi 也是可以的,但是现在很难获得免费版本(如果有的话)。
You don't name server type, but Free pascal ( http://www.freepascal.org ) comes with nearly every Linux distribution nowadays, as well in the FreeBSD ports and on Mac OS X (x86+ppc + 64-bit of both, via fink or standalone .dmg installer).
For windows and dos there are normal all-in-one installers at http://www.freepascal.org
If you want more Delphi like RAD editing, you probably want Lazarus ( http://Lazarus.freepascal.org , also available for the above platforms, except for dos)
Solaris x86+sparc exist, but are a bit experimental.
If it is a windows server, Delphi is also possible, but free versions are hard to get (if at all) nowadays.
如今,帕斯卡已经很不常见了。除非服务器有理由拥有它,否则它不会。这里的 apache 标签似乎表明您指的是网络服务器。 Web 服务器通常没有 Pascal 编译器。
GNU Pascal 编译器称为 gpc。它基于 GCC(流行的 C 编译器)构建,最高版本为 3.4。请参阅 http://www.gnu-pascal.de 。如果服务器出于兼容性考虑而安装了 GCC 的旧副本,也许您可以设法安装它。
Pascal is pretty uncommon these days. Unless there's a reason for the server to have it, it won't. The apache tag here seems to indicate you mean a webserver. Webservers generally don't have Pascal compilers.
The GNU Pascal Compiler is called
gpc
. It's built upon GCC, the popular C compiler, up to version 3.4. See http://www.gnu-pascal.de . Maybe you can manage to install it, if the server has an old copy of GCC up for compatibility's sake.