分页: 1 / 2

安装软件的问题

发表于 : 2006-05-22 22:59
cagewang
怎么使用新力得来装软件阿。。比如我现在下了个源.以tar.gz结尾的文件.放到桌面上.接下来如何操作.
在终端又如何输入命令呢?
谢谢请高手讲清楚点.我是菜鸟.

Re: 安装软件的问题

发表于 : 2006-05-22 23:10
freeflying
cagewang 写了:怎么使用新力得来装软件阿。。比如我现在下了个源.以tar.gz结尾的文件.放到桌面上.接下来如何操作.
在终端又如何输入命令呢?
谢谢请高手讲清楚点.我是菜鸟.
dapper源里自带有16000多种软件,不够你用?

发表于 : 2006-05-22 23:17
qzzhong
装不了的东西,要装就得装DEB的包。

发表于 : 2006-05-23 0:09
bigapple
qzzhong 写了:装不了的东西,要装就得装DEB的包。
误人子弟啊!
难道除了apt-get和deb包,就没其他的安装方法了吗?
.tar.gz的包一般需要手工安装,如果没什么特别需要的话,步骤如下
tar zxvf xxx.tar.gz
cd xxx
./configure
make
make install ( su to user root )
当然最好先看看README和HOWTO文档,按gun标准打包的程序一般都带这两个文档的。

发表于 : 2006-05-23 8:36
karron
建议新手通过新立得安装,不要通过源代码安装.

发表于 : 2006-05-23 8:52
qzzhong
sudo apt-get install synaptic下载安装一个新立德,就可以运行他装东西了。谁说我误人子弟,好多那个gz的装不了,只有一二个才可以安装,你这不是在误人子弟。干脆忘掉那个安装,。

发表于 : 2006-05-23 9:12
Strange
需要自己编译的软件需要自己解决依赖和冲突问题,麻烦是麻烦了点,不过要好玩多了

发表于 : 2006-05-23 9:19
Element
qzzhong 写了:sudo apt-get install synaptic下载安装一个新立德,就可以运行他装东西了。谁说我误人子弟,好多那个gz的装不了,只有一二个才可以安装,你这不是在误人子弟。干脆忘掉那个安装,。
系统--管理--新立得。
在里面找你想装的软件。

发表于 : 2006-05-23 9:37
bigapple
qzzhong 写了:sudo apt-get install synaptic下载安装一个新立德,就可以运行他装东西了。谁说我误人子弟,好多那个gz的装不了,只有一二个才可以安装,你这不是在误人子弟。干脆忘掉那个安装,。
我的口气似乎不怎么妥当,像你道歉。

tar.gz是GNU软件包的标准发放模式,你说要忘记这个,我真的觉得不妥。
mysql,apache之类的软件有很多参数可以在configure的时候调整。
Installing a GNU package
Autoconfiguring software is distributed with packaged source code distributions. These are big files with filenames of the form:

package-version.tar.gz

For example, the file `autoconf-2.13.tar.gz' contains version 2.13 of GNU Autoconf. We often call these files source distributions; sometimes we simply call them packages.

The steps for installing an autoconfiguring source code distribution are simple, and if the distribution is not buggy, can be carried out without substantial user intervention.

First, you have to unpack the package to a directory:
% gunzip foo-1.0.tar.gz
% tar xf foo-1.0.tar

This will create the directory `foo-1.0' which contains the package's source code and documentation. Look for the files `README' to see if there's anything that you should do next. The `README' file might suggest that you need to install other packages before installing this one, or it might suggest that you have to do unusual things to install this package. If the source distribution conforms to the GNU coding standards, you will find many other documentation files like `README'. See section Maintaining the documentation files, for an explanation of what these files mean.
Configure the source code. Once upon a time that used to mean that you have to edit makefiles and header files. In the wonderful world of Autoconf, source distributions provide a `configure' script that will do that for you automatically. To run the script type:
% ./configure

Now you can compile the source code. Type:
% cd foo-1.0
% make

and if the program is big, you can make some coffee. After the program compiles, you can run its regression test-suite, if it has one, by typing
% make check

If everything is okey, you can install the compiled distribution with:
% su
# make install

The `make' program launches the shell commands necessary for compiling, testing and installing the package from source code. However, `make' has no knowledge of what it is really doing. It takes its orders from makefiles, files called `Makefile' that have to be present in every subdirectory of your source code directory tree. From the installer perspective, the makefiles define a set of targets that correspond to things that the installer wants to do. The default target is always compiling the source code, which is what gets invoked when you simply run make. Other targets, such as `install', `check' need to be mentioned explicitly. Because `make' takes its orders from the makefile in the current directory, it is important to run it from the correct directory. See section Compiling with Makefiles, for the full story behind `make'.

The `configure' program is a shell script that probes your system through a set of tests to determine things that it needs to know, and then uses the results to generate `Makefile' files from templates stored in files called `Makefile.in'. In the early days of the GNU project, developers used to write `configure' scripts by hand. Now, no-one ever does that any more. Now, `configure' scripts are automatically generated by GNU Autoconf from an input file `configure.in'. GNU Autoconf is part of the GNU build system and we first introduce in in section The GNU build system.

As it turns out, you don't have to write the `Makefile.in' templates by hand either. Instead you can use another program, GNU Automake, to generate `Makefile.in' templates from higher-level descriptions stored in files called `Makefile.am'. In these files you describe what is being created by your source code, and Automake computes the makefile targets for compiling, installing and uninstalling it. Automake also computes targets for compiling and running test suites, and targets for recursively calling make in subdirectories. The details about Automake are first introduced in section Using Automake.
[/code]

发表于 : 2006-05-24 4:05
tcs
尽量用新立得安装卸载,
tar.gz直接解压缩就可以使用了.

发表于 : 2006-05-24 15:46
newhpzzw
感觉用tar.gz能学到一些基本命令

发表于 : 2006-05-26 9:22
gordonyb0
难道说向我这样没有光驱,linux下又不能上网的人就不能装新软件了?
5~~~

发表于 : 2006-05-26 9:43
hbj0331
可以用u盘先下载下来,再拷过去安装
我们宿舍联网以前就是那样的,不过软件的依赖关系比较难解决
万一少了个什么,你就又要去下了
^^

Re: 安装软件的问题

发表于 : 2006-06-03 15:47
pedant
freeflying 写了:
cagewang 写了:怎么使用新力得来装软件阿。。比如我现在下了个源.以tar.gz结尾的文件.放到桌面上.接下来如何操作.
在终端又如何输入命令呢?
谢谢请高手讲清楚点.我是菜鸟.
dapper源里自带有16000多种软件,不够你用?
你不觉得源里面的程序太旧了吗?都是些什么年代的版本??

唉,难道更新很困难吗?

Re: 安装软件的问题

发表于 : 2006-06-03 16:00
karron
mazefa 写了:
你不觉得源里面的程序太旧了吗?都是些什么年代的版本??

唉,难道更新很困难吗?
ubuntu的工程师要保证软件的兼容性,你以为随随便便就紧跟软件升级阿。更何况16000种软件,每天有多少软件更新?ubuntu的工程师跟得及吗?

本来就是免费在使用别人提供给你的软件和服务,难道就不会有个感恩的心?

更何况大家是对于新手推荐使用新立得进行安装软件。如果你有能力自己安装最新的软件就自己安装了。如果能够从源代码编译就更好了。把你的经验写出来与大家分享恐怕比你在这里要求别人好的多吧?