gcc 装 pascal
Tofloor
poster avatar
905443848
deepin
2011-12-18 05:24
Author
[yuanjiayun@/media/FA606D28606CECB7/2.4.4/bin/i386-win32/my program/pascal/dian]$ gcc dian.pas
gcc: dian.pas: Pascal compiler not installed on this system
dian.pas是我的文件。
终端中这样显示。
Reply Favorite View the author
All Replies
shiweifu
deepin
2011-12-18 05:50
#1
LZ要不试试freepascal,有deb安装包的
http://www.freepascal.org/
Reply View the author
s.******[email protected]
deepin
2011-12-18 05:57
#2
sudo apt-get install gpc
然后使用命令gpc试试。
Reply View the author
905443848
deepin
2011-12-18 06:58
#3
sudo apt-get install gpc
然后使用命令gpc试试。
什么是gpc?怎么用?

[yuanjiayun@~]$ sudo apt-get install gpc
[sudo] password for yuanjiayun:
Sorry, try again.
[sudo] password for yuanjiayun:

Reply View the author
905443848
deepin
2011-12-18 07:03
#4
LZ要不试试freepascal,有deb安装包的
http://www.freepascal.org/
安装包有好几十个。都是爱好者自己打的deb。
官方没做deb包,只有红帽的包和tar.qz.其余的deb包很小,大多1m以下,最大10m
你来帮我做一个?
Reply View the author
s.******[email protected]
deepin
2011-12-19 18:47
#5
[quote]sudo apt-get install gpc
然后使用命令gpc试试。
什么是gpc?怎么用?

[yuanjiayun@~]$ sudo apt-get install gpc
[sudo] password for yuanjiayun:
Sorry, try again.
[sudo] password for yuanjiayun:

?[/quote]
你自己密碼你都不記得?
Reply View the author
905443848
deepin
2011-12-24 06:30
#6
[yuanjiayun@~/程序/pascal]$ gcc a.pas
gcc: a.pas: Pascal compiler not installed on this system
[yuanjiayun@~/程序/pascal]$ sudo apt-get install gpc
[sudo] password for yuanjiayun:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
现在没有可用的软件包 gpc,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 gpc 没有可供安装的候选者
[yuanjiayun@~/程序/pascal]$ gcc a.pas
gcc: a.pas: Pascal compiler not installed on this system
[yuanjiayun@~/程序/pascal]$
Reply View the author
qiansen1386
deepin
2011-12-24 11:07
#7
pascal是我学的第一个语言。为什么用这么古老的东西……费解。用delphi也好啊?
Reply View the author
905443848
deepin
2011-12-24 15:55
#8
我最早学的是pascal现在是c,不过以前用pascal编出过算电费的程序,现在想在linux下用
Reply View the author
905443848
deepin
2011-12-24 16:01
#9
自带的安装脚本在终端

This shell script will attempt to install the Free Pascal Compiler
version 2.4.4 with the items you select

Install prefix (/usr or /usr/local)  [/home/yuanjiayun/fpc-2.4.4] : y
Installing compiler and RTL for i386-linux...
Installing utilities...
Install Textmode IDE (Y/n) ? y
Install FCL (Y/n) ? y
Installing fcl-async
Installing fcl-base
Installing fcl-db
Installing fcl-extra
yInstalling fcl-fpcunit
Installing fcl-image
Installing fcl-js
Installing fcl-json
Installing fcl-net
Installing fcl-passrc
Installing fcl-process
Installing fcl-registry
Installing fcl-res
Installing fcl-web
Installing fcl-xml
Install packages (Y/n) ? y
Install packages (Y/n) ? y
Installing a52
Installing aspell
Installing bfd
Installing bzip2
Installing cairo
Installing cdrom
Installing chm
Installing dbus
Installing dts
Installing fastcgi
Installing fftw
Installing fpgtk
Installing fpmkunit
Installing fv
Installing gdbint
Installing gdbm
Installing ggi
Installing gmp
Installing gnome1
Installing graph
Installing gtk1
Installing gtk2
Installing hash
Installing hermes
Installing httpd13
Installing httpd20
Installing httpd22
Installing ibase
Installing iconvenc
Installing imagemagick
Installing imlib
Installing ldap
Installing libc
Installing libcurl
Installing libgd
Installing libpng
Installing libsee
Installing libxml2
Installing lua
Installing mad
Installing modplug
Installing mysql
Installing ncurses
Installing newt
Installing numlib
Installing odbc
Installing oggvorbis
Installing openal
Installing opencl
Installing opengl
Installing openssl
Installing oracle
Installing pasjpeg
Installing paszlib
Installing pcap
Installing postgres
Installing proj4
Installing ptc
Installing pthreads
Installing pxlib
Installing regexpr
Installing rsvg
Installing sdl
Installing sqlite
Installing svgalib
Installing symbolic
Installing syslog
Installing tcl
Installing unixutil
Installing unzip
Installing users
Installing utmp
Installing uuid
Installing x11
Installing xforms
Installing zlib
Done.

Install documentation (Y/n) ? y
Installing documentation in y/share/doc/fpc-2.4.4 ...
Done.

Install demos (Y/n) ? y
Reply View the author