请教:tar.gz文件安装中遇到的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
shaolijun1987
帖子: 1
注册时间: 2009-05-29 0:16

请教:tar.gz文件安装中遇到的问题

#1

帖子 shaolijun1987 » 2009-06-29 11:40

软件包是tar.gz格式的

它有自己的安装介绍(见后面),我按照它的要求,复制文件到/usr/local/src,然后tar -xzvf,然后把./bin/Setup.bash加入PATH

但是这样以后怎么运行软件呢?我照它的例子,在终端输入 pyraf,可是终端告诉我这个命令不存在。

我在论坛里搜索了安装tar.gz软件包的方法,可是里面都说是用make,可我解压后没有Makefile文件啊,请问怎么办呢?非常感谢!!

我是菜鸟。。。呜呜。。。

=============================
INSTALL文件
=============================
Scisoft Installation

This document describes how to install and uninstall Scisoft 7.0 on
Fedora Core 6. Other Linux distributions are not officially supported,
but may work.

All indentation in this document is for readability only; you should
not indent any commands or file contents. All commands are to be run
as non-root unless specified otherwise.

The instructions below assume a network installation but the same
files are also available on the Scisoft DVD.

Further information about Scisoft can be found at:

http://www.eso.org/scisoft.

The Scisoft Team, June 2007 (scihelp@eso.org)

Installing Scisoft 7.0 on Fedora Core 6
=======================================

There are three methods to install Scisoft 7.0; these are described
below in order of preference (best first), together with the pros
and cons of each method.

Method #1 Installing from the online yum repository
---------------------------------------------------

Pros:

* your scisoft installation can automatically be kept
aligned with the latest available bugfixes for this Scisoft
release

* you can install all of Scisoft or only the parts you
want

Cons:

* requires Fedora Core 6

Procedure:

1) If you have a previous installation of Scisoft then back
it up and remove it using a method appropriate to it was
installed (e.g. if you used 'yum' to install it now use
'yum' to remove it).

2) As root create /etc/yum.repos.d/scisoft.repo containing:

[scisoft]
name=Scisoft
baseurl=ftp://ftp.eso.org/scisoft/scisoft7/linu ... 6/yum-repo
gpgcheck=0
enabled=1

3) As root run:

yum clean all
yum install scisoft-\*

and when prompted, check the list of packages about to
be installed looks sensible, and then allow yum to start
installing the packages by pressing 'y'.

Method #2 Installing from RPMs
------------------------------

Pros:

* you can install all of Scisoft or only the parts you
want

Cons:

* requires Fedora Core 6, or that some dependencies are
overridden using rpm's '--nodeps' option

Procedure:

1) Download all RPMs at
ftp://ftp.eso.org/scisoft/scisoft7/linux/fedora6/RPMs/,
or copy them from the Scisoft DVD
and save them to a directory, which we will call
<scisoft-save-dir>.

2) If you have a previous installation of Scisoft then back
it up and remove it using a method appropriate to it was
installed (e.g. if you used 'yum' to install it now use
'yum' to remove it).

3) As root, run:

rpm -ihv <scisoft-save-dir>/*.rpm

Method #3 Installing from tar.gz
--------------------------------

Pros:

* May mean you can get Scisoft 7.0 running on unsupported
versions of Linux (which is not supported).

Cons:

* you must install all of Scisoft and cannot install only
the parts you want

* prerequisite libraries are not automatically checked at
install-time

Procedure:

1) Scisoft depends on several external packages which are
provided in the tarball. Some of the software will
work without these, but you will need to install them
if you want all of Scisoft to work. If you are using a
RPM compatible distribution you can try to download and
install the following packages:
- SDL_image
- SDL_ttf
- compat-libf2c-34
- libgfortran
- unixODBC
If you are using a non RPM based distribution you will
need to find the equivalent packages.

2) Download the tar.gz file from
ftp://ftp.eso.org/scisoft/scisoft7/linux/fedora6/tar/,
or copy them from the Scisoft DVD
and save it to a directory, which we will call
<scisoft-save-dir>.

3) If you have a previous installation of Scisoft then back
it up and remove it using a method appropriate to it was
installed (e.g. if you used 'yum' to install it now use
'yum' to remove it).

4) As root, run:

cd /
tar xzf <scisoft-save-dir>/scisoft-*.tar.gz

Problems with SELinux and FC6
-----------------------------
Some software in Scisoft 7.0 such as inmidas conflict with SELinux
which is installed by default on Fedora Core 6.
For more information see:
http://www.eso.org/sci/data-processing/ ... q.html#q25

Uninstalling Scisoft 7.0 on Fedora Core 6
========================================

There are three methods to uninstall Scisoft 7.0; you should use the
method which corresponds with the method you chose for installing
Scisoft 7.0.

Method #1 Uninstalling using yum
--------------------------------

1) As root run:

yum remove scisoft-\*

and when prompted, check the list of packages about to
be uninstalled looks sensible, and then allow yum to start
uninstalling the packages by pressing 'y'.

Method #2 Uninstalling using rpm
--------------------------------

1) As root get a list of RPMs to remove with:

RPM_LIST=`rpm -qa | grep scisoft-`

2) As root still, remove these RPMs with:

rpm -e $RPM_LIST

Method #3 Uninstalling the tar.gz
---------------------------------

1) As root run:

cd /scisoft
rm -fr *
rm -f /dev/imt1 /dev/imt1i /dev/imt1o /usr/include/iraf.h /usr/local/lib/imtoolrc


--


=====================
README_USERS 文件
=====================
Using the ESO Scientific Software Collection (Scisoft)

If the Scisoft software collection has been installed on your computer,
or an accessible server machine it is essential for all users to
source a shell script to configure their environment. What needs to
be done depends on the user's shell:

"csh" and "tcsh" users should invoke the command:

source /scisoft/bin/Setup.csh

and users of the "bash" shell should use:

. /scisoft/bin/Setup.bash

These commands may be conveniently added to an appropriate startup
file such as .cshrc or .tcshrc (for csh and tcsh) and .profile (for bash)
or the system-wide equivalents.

If you are unsure which shell you are using type:

echo $SHELL

Once the setup script has been sourced all the Scisoft packages will be
available without further action. So, for example you can start PyRAF
by just typing "pyraf".

If you have difficulties please contact us.

The Scisoft Team, June 2007 (scihelp@eso.org)
头像
AngelMAX
帖子: 2228
注册时间: 2009-02-25 18:18

Re: 请教:tar.gz文件安装中遇到的问题

#2

帖子 AngelMAX » 2009-06-29 12:37

Method #3 Installing from tar.gz
--------------------------------

Pros:

* May mean you can get Scisoft 7.0 running on unsupported
versions of Linux (which is not supported).

Cons:

* you must install all of Scisoft and cannot install only
the parts you want

* prerequisite libraries are not automatically checked at
install-time

Procedure:

1) Scisoft depends on several external packages which are
provided in the tarball. Some of the software will
work without these, but you will need to install them
if you want all of Scisoft to work. If you are using a
RPM compatible distribution you can try to download and
install the following packages:
- SDL_image
- SDL_ttf
- compat-libf2c-34
- libgfortran
- unixODBC
If you are using a non RPM based distribution you will
need to find the equivalent packages.

2) Download the tar.gz file from
ftp://ftp.eso.org/scisoft/scisoft7/linux/fedora6/tar/,
or copy them from the Scisoft DVD
and save it to a directory, which we will call
<scisoft-save-dir>.

3) If you have a previous installation of Scisoft then back
it up and remove it using a method appropriate to it was
installed (e.g. if you used 'yum' to install it now use
'yum' to remove it).

4) As root, run:

cd /
tar xzf <scisoft-save-dir>/scisoft-*.tar.gz
似乎是解开就能用【好像好多个,要下全】,你找找Setup.bash,然后双击,在终端中运行,不行的话把软件目录和里面的文件的权限都改成777
ps:没用过,没听说过,没安装过,纯看readme和经验 :em06
在中国搞IT的谁不知道Ctrl+C,Ctrl+V啊~
回复