Fedora Users Forum

Fedoraユーザのためのサポートフォーラム
現在時刻 - 2019年3月26日(火) 23:25

All times are UTC + 9 hours





新しいトピックを投稿する トピックへ返信する  [ 43 件の記事 ]  ページ移動 1つ前へ  1, 2, 3, 4, 5  次へ
作成者 メッセージ
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年4月30日(木) 11:03 
オフライン
Site Admin
アバター
プライベートメッセージ送信  メール  WWW  プロフィール

登録日時: 2008年9月08日(月) 21:17
記事: 428
所在地: 東京都
インストール済みのrpmのパッケージ名を確認するコマンドは,「rpm -qa」です。今回の場合は,

$ rpm -qa | grep java

を実行して,パッケージ名を確認し,

$ su
# rpm -e (パッケージ名)


で,アンインストールできる・・と思います。が,rpm -e で削除する場合,拡張子(rpm)まで含めた正確なパッケージ名が必要だったり,依存関係が崩れたり,結構面倒です。

※ 赤字部分は勘違いのようです。すみません。

$ su
# ./jdk-6u13-linux-i586-rpm.bin --help


とかで,アンインストールのオプションが表示されたりしませんか?


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年4月30日(木) 21:22 
オフライン
プライベートメッセージ送信  メール  プロフィール

登録日時: 2008年11月03日(月) 21:48
記事: 271
vine_userさん、HiroKwsさん
お返事ありがとうございます
rpm -qa | grep java で調べてみました

引用:
[snow@localhost ~]$ rpm -qa|grep java
java-1.6.0-openjdk-1.6.0.0-0.25.b09.fc9.i386
sun-javadb-core-10.4.1-3.1.i386
java_cup-0.10-0.k.6jpp.2.i386
sun-javadb-docs-10.4.1-3.1.i386
tzdata-java-2009e-3.fc9.noarch
sun-javadb-demo-10.4.1-3.1.i386
java-1.5.0-gcj-1.5.0.0-21.fc9.i386
sun-javadb-client-10.4.1-3.1.i386
sun-javadb-javadoc-10.4.1-3.1.i386
java-1.6.0-openjdk-plugin-1.6.0.0-0.25.b09.fc9.i386
sun-javadb-common-10.4.1-3.1.i386

この中で、sun とついているパッケージが気になったので
これについても
rpm -qa | grep sun で見てみました
引用:
[snow@localhost ~]$ rpm -qa|grep sun
sun-javadb-core-10.4.1-3.1.i386
sun-javadb-docs-10.4.1-3.1.i386
sun-javadb-demo-10.4.1-3.1.i386
sun-javadb-client-10.4.1-3.1.i386
sun-javadb-javadoc-10.4.1-3.1.i386
sun-javadb-common-10.4.1-3.1.i386
[snow@localhost ~]$

こうなってくると、rpm -e で消すパッケージは
これらの sun のつくパッケージを消すということでしょうか?

$ su
# ./jdk-6u13-linux-i586-rpm.bin --help
でアンインストールの方法を見てみましたが、
ライセンス関連がかかれているのと、インストールとアップデートがかかれているようです
引用:
[root@localhost Download]# ./jdk-6u13-linux-i586-rpm.bin -help
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE "DECLINE" BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.

1. DEFINITIONS. "Software" means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you
by Sun under this Agreement. "General Purpose Desktop
Computers and Servers" means computers, including desktop,
laptop and tablet computers, or servers, used for general
computing functions under end user control (such as but not
specifically limited to email, general purpose Internet
browsing, and office suite productivity tools).
The use of Software in systems and solutions that provide
dedicated functionality (other than as mentioned above) or
designed for use in embedded or function-specific software
applications, for example but not limited to: Software
embedded in or bundled with industrial control systems,
wireless mobile telephones, wireless handheld devices,
kiosks, TV/STB, Blu-ray Disc devices, telematics and
network control switching equipment, printers and storage
management systems, and other related systems are excluded
from this definition and not licensed under this
Agreement. "Programs" means Java technology applets and
applications intended to run on the Java Platform Standard
Edition (Java SE) platform on Java-enabled General Purpose
Desktop Computers and Servers.

2. LICENSE TO USE. Subject to the terms and conditions of
this Agreement, including, but not limited to the Java
Technology Restrictions of the Supplemental License Terms,
Sun grants you a non-exclusive, non-transferable, limited
license without license fees to reproduce and use
internally Software complete and unmodified for the sole
purpose of running Programs. Additional licenses for
developers and/or publishers are granted in the
Supplemental License Terms.

3. RESTRICTIONS. Software is confidential and copyrighted.
Title to Software and all associated intellectual property
rights is retained by Sun and/or its licensors. Unless
enforcement is prohibited by applicable law, you may not
modify, decompile, or reverse engineer Software. You
acknowledge that Licensed Software is not designed or
intended for use in the design, construction, operation or
maintenance of any nuclear facility. Sun Microsystems, Inc.
disclaims any express or implied warranty of fitness for
such uses. No right, title or interest in or to any
trademark, service mark, logo or trade name of Sun or its
licensors is granted under this Agreement. Additional
restrictions for developers and/or publishers licenses are
set forth in the Supplemental License Terms.

4. LIMITED WARRANTY. Sun warrants to you that for a period
of ninety (90) days from the date of purchase, as evidenced
by a copy of the receipt, the media on which Software is
furnished (if any) will be free of defects in materials and
workmanship under normal use. Except for the foregoing,
Software is provided "AS IS". Your exclusive remedy and
Sun's entire liability under this limited warranty will be
at Sun's option to replace Software media or refund the fee
paid for Software. Any implied warranties on the Software
are limited to 90 days. Some states do not allow
limitations on duration of an implied warranty, so the
above may not apply to you. This limited warranty gives you
specific legal rights. You may have others, which vary from
state to state.

5. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS
AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.

6. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY
LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR
ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT
OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE,
EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES. In no event will Sun's liability to you, whether
in contract, tort (including negligence), or otherwise,
exceed the amount paid by you for Software under this
Agreement. The foregoing limitations will apply even if the
above stated warranty fails of its essential purpose. Some
states do not allow the exclusion of incidental or
consequential damages, so some of the terms above may not
be applicable to you.

7. TERMINATION. This Agreement is effective until
terminated. You may terminate this Agreement at any time by
destroying all copies of Software. This Agreement will
terminate immediately without notice from Sun if you fail
to comply with any provision of this Agreement. Either
party may terminate this Agreement immediately should any
Software become, or in either party's opinion be likely to
become, the subject of a claim of infringement of any
intellectual property right. Upon Termination, you must
destroy all copies of Software.

8. EXPORT REGULATIONS. All Software and technical data
delivered under this Agreement are subject to US export
control laws and may be subject to export or import
regulations in other countries. You agree to comply
strictly with all such laws and regulations and acknowledge
that you have the responsibility to obtain such licenses to
export, re-export, or import as may be required after
delivery to you.

9. TRADEMARKS AND LOGOS. You acknowledge and agree as
between you and Sun that Sun owns the SUN, SOLARIS, JAVA,
JINI, FORTE, and iPLANET trademarks and all SUN, SOLARIS,
JAVA, JINI, FORTE, and iPLANET-related trademarks, service
marks, logos and other brand designations ("Sun Marks"),
and you agree to comply with the Sun Trademark and Logo
Usage Requirements currently located at
. Any use you make of
the Sun Marks inures to Sun's benefit.

10. U.S. GOVERNMENT RESTRICTED RIGHTS. If Software is being
acquired by or on behalf of the U.S. Government or by a
U.S. Government prime contractor or subcontractor (at any
tier), then the Government's rights in Software and
accompanying documentation will be only as set forth in
this Agreement; this is in accordance with 48 CFR 227.7201
through 227.7202-4 (for Department of Defense (DOD)
acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD
acquisitions).

11. GOVERNING LAW. Any action related to this Agreement
will be governed by California law and controlling U.S.
federal law. No choice of law rules of any jurisdiction
will apply.

12. SEVERABILITY. If any provision of this Agreement is
held to be unenforceable, this Agreement will remain in
effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this
Agreement will immediately terminate.

13. INTEGRATION. This Agreement is the entire agreement
between you and Sun relating to its subject matter. It
supersedes all prior or contemporaneous oral or written
communications, proposals, representations and warranties
and prevails over any conflicting or additional terms of
any quote, order, acknowledgment, or other communication
between the parties relating to its subject matter during
the term of this Agreement. No modification of this
Agreement will be binding, unless in writing and signed by
an authorized representative of each party.

SUPPLEMENTAL LICENSE TERMS

These Supplemental License Terms add to or modify the terms
of the Binary Code License Agreement. Capitalized terms not
defined in these Supplemental Terms shall have the same
meanings ascribed to them in the Binary Code License
Agreement . These Supplemental Terms shall supersede any
inconsistent or conflicting terms in the Binary Code
License Agreement, or in any license contained within the
Software.

A. Software Internal Use and Development License Grant.
Subject to the terms and conditions of this Agreement and
restrictions and exceptions set forth in the Software
"README" file incorporated herein by reference, including,
but not limited to the Java Technology Restrictions of
these Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license without fees to reproduce
internally and use internally the Software complete and
unmodified for the purpose of designing, developing, and
testing your Programs.

B. License to Distribute Software. Subject to the terms and
conditions of this Agreement and restrictions and
exceptions set forth in the Software README file,
including, but not limited to the Java Technology
Restrictions of these Supplemental Terms, Sun grants you a
non-exclusive, non-transferable, limited license without
fees to reproduce and distribute the Software, provided
that (i) you distribute the Software complete and
unmodified and only bundled as part of, and for the sole
purpose of running, your Programs, (ii) the Programs add
significant and primary functionality to the Software,
(iii) you do not distribute additional software intended to
replace any component(s) of the Software, (iv) you do not
remove or alter any proprietary legends or notices
contained in the Software, (v) you only distribute the
Software subject to a license agreement that protects Sun's
interests consistent with the terms contained in this
Agreement, and (vi) you agree to defend and indemnify Sun
and its licensors from and against any damages, costs,
liabilities, settlement amounts and/or expenses (including
attorneys' fees) incurred in connection with any claim,
lawsuit or action by any third party that arises or results
from the use or distribution of any and all Programs and/or
Software.

C. License to Distribute Redistributables. Subject to the
terms and conditions of this Agreement and restrictions and
exceptions set forth in the Software README file, including
but not limited to the Java Technology Restrictions of
these Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license without fees to reproduce
and distribute those files specifically identified as
redistributable in the Software "README" file
("Redistributables") provided that: (i) you distribute the
Redistributables complete and unmodified, and only bundled
as part of Programs, (ii) the Programs add significant and
primary functionality to the Redistributables, (iii) you do
not distribute additional software intended to supersede
any component(s) of the Redistributables (unless otherwise
specified in the applicable README file), (iv) you do not
remove or alter any proprietary legends or notices
contained in or on the Redistributables, (v) you only
distribute the Redistributables pursuant to a license
agreement that protects Sun's interests consistent with the
terms contained in the Agreement, (vi) you agree to defend
and indemnify Sun and its licensors from and against any
damages, costs, liabilities, settlement amounts and/or
expenses (including attorneys' fees) incurred in connection
with any claim, lawsuit or action by any third party that
arises or results from the use or distribution of any and
all Programs and/or Software.

D. Java Technology Restrictions. You may not create,
modify, or change the behavior of, or authorize your
licensees to create, modify, or change the behavior of,
classes, interfaces, or subpackages that are in any way
identified as "java", "javax", "sun" or similar convention
as specified by Sun in any naming convention designation.

E. Distribution by Publishers. This section pertains to
your distribution of the Software with your printed book or
magazine (as those terms are commonly used in the industry)
relating to Java technology ("Publication"). Subject to and
conditioned upon your compliance with the restrictions and
obligations contained in the Agreement, in addition to the
license granted in Paragraph 1 above, Sun hereby grants to
you a non-exclusive, nontransferable limited right to
reproduce complete and unmodified copies of the Software on
electronic media (the "Media") for the sole purpose of
inclusion and distribution with your Publication(s),
subject to the following terms: (i) You may not distribute
the Software on a stand-alone basis; it must be distributed
with your Publication(s); (ii) You are responsible for
downloading the Software from the applicable Sun web site;
(iii) You must refer to the Software as JavaTM SE
Development Kit 6; (iv) The Software must be reproduced in
its entirety and without any modification whatsoever
(including, without limitation, the Binary Code License and
Supplemental License Terms accompanying the Software and
proprietary rights notices contained in the Software);
(v) The Media label shall include the following
information: Copyright 2006, Sun Microsystems, Inc. All
rights reserved. Use is subject to license terms. Sun, Sun
Microsystems, the Sun logo, Solaris, Java, the Java Coffee
Cup logo, J2SE, and all trademarks and logos based on Java
are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries. This
information must be placed on the Media label in such a
manner as to only apply to the Sun Software; (vi) You must
clearly identify the Software as Sun's product on the Media
holder or Media label, and you may not state or imply that
Sun is responsible for any third-party software contained
on the Media; (vii) You may not include any third party
software on the Media which is intended to be a replacement
or substitute for the Software; (viii) You shall indemnify
Sun for all damages arising from your failure to comply
with the requirements of this Agreement. In addition, you
shall defend, at your expense, any and all claims brought
against Sun by third parties, and shall pay all damages
awarded by a court of competent jurisdiction, or such
settlement amount negotiated by you, arising out of or in
connection with your use, reproduction or distribution of
the Software and/or the Publication. Your obligation to
provide indemnification under this section shall arise
provided that Sun: (a) provides you prompt notice of the
claim; (b) gives you sole control of the defense and
settlement of the claim; (c) provides you, at your expense,
with all available information, assistance and authority to
defend; and (d) has not compromised or settled such claim
without your prior written consent; and (ix) You shall
provide Sun with a written notice for each Publication;
such notice shall include the following information: (1)
title of Publication, (2) author(s), (3) date of
Publication, and (4) ISBN or ISSN numbers. Such notice
shall be sent to Sun Microsystems, Inc., 4150 Network
Circle, M/S USCA12-110, Santa Clara, California 95054,
U.S.A , Attention: Contracts Administration.

F. Source Code. Software may contain source code that,
unless expressly licensed for other purposes, is provided
solely for reference purposes pursuant to the terms of this
Agreement. Source code may not be redistributed unless
expressly provided for in this Agreement.

G. Third Party Code. Additional copyright notices and
license terms applicable to portions of the Software are
set forth in the THIRDPARTYLICENSEREADME.txt file. In
addition to any terms and conditions of any third party
opensource/freeware license identified in the
THIRDPARTYLICENSEREADME.txt file, the disclaimer of
warranty and limitation of liability provisions in
paragraphs 5 and 6 of the Binary Code License Agreement
shall apply to all Software in this distribution.

H. Termination for Infringement. Either party may terminate
this Agreement immediately should any Software become, or
in either party's opinion be likely to become, the subject
of a claim of infringement of any intellectual property
right.

I. Installation and Auto-Update. The Software's
installation and auto-update processes transmit a limited
amount of data to Sun (or its service provider) about those
specific processes to help Sun understand and optimize
them. Sun does not associate the data with personally
identifiable information. You can find more information
about the data Sun collects at .

For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.

Do you agree to the above license terms? [yes or no]


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年4月30日(木) 22:12 
オフライン
プライベートメッセージ送信  WWW  プロフィール

登録日時: 2008年9月13日(土) 12:37
記事: 250
所在地: 兵庫県
横槍入れるようで恐縮です。

パッケージ管理はrpmコマンドよりもyumコマンドを使用する方がよろしいかと思います。

コード:
# yum erase パッケージ名

今回の場合はインストールしたパッケージが
  • jdk
  • sun-javadb-common
  • sun-javadb-core
  • sun-javadb-client
  • sun-javadb-demo
  • sun-javadb-docs
  • sun-javadb-javadoc
となってますね(HiroKwsさんの投稿を元にしています)。

yumで実行すれば依存関係も含めて処理してくれるので楽です(うまくいけば上のパッケージどれか1つ、例えばjdkだけを指定しておけば、依存関係にあるものをまとめて削除してくれたりします)。

#ちなみにrpm -eではvine_userさんがお書きになっておられる通り、パッケージ名だけでOKです。拡張子まで含めたらむしろアインインストールできなかったはずです。複数のバージョンが入っている場合はバージョン番号までを指定すればそちらのパッケージだけを削除できます。


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年5月01日(金) 06:16 
オフライン
プライベートメッセージ送信  WWW  プロフィール

登録日時: 2008年9月20日(土) 23:35
記事: 278
所在地: にっぽん、ちゃちゃちゃ
 実験しました。

 .binファイルは-helpでも、--helpでもヘルプは出ません。インストール作業しか出来ないようで、オプションや引数は一切受付ないようです。

 yumですが、依存関係で一番大本のパッケージはsun-javadb-commonらしいです。たぶん。(依存関係を見忘れましたw)

 
コード:
su
yum erase sun-javadb-common

 ですべて消去されるはずです。たぶん。まあ、残ったら、一つ一つ消してください。では。


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年5月01日(金) 19:37 
オフライン
プライベートメッセージ送信  メール  プロフィール

登録日時: 2008年11月03日(月) 21:48
記事: 271
こんばんわ
code_air_edgeさん、HiroKwsさん

yum によるるアンインストールを教えていただきありがとうございます
さっそく、yum erase sun-javadb-common
を行うことで、パッケージを削除できました

引用:
[snow@localhost ~]$ su
パスワード:
[root@localhost snow]# yum erase sun-javadb-common
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package sun-javadb-common.i386 0:10.4.1-3.1 set to be erased
--> Processing Dependency: sun-javadb-common for package: sun-javadb-javadoc
--> Processing Dependency: sun-javadb-common for package: sun-javadb-client
--> Processing Dependency: sun-javadb-common for package: sun-javadb-core
--> Processing Dependency: sun-javadb-common for package: sun-javadb-demo
--> Processing Dependency: sun-javadb-common for package: sun-javadb-docs
--> Running transaction check
---> Package sun-javadb-client.i386 0:10.4.1-3.1 set to be erased
---> Package sun-javadb-core.i386 0:10.4.1-3.1 set to be erased
---> Package sun-javadb-demo.i386 0:10.4.1-3.1 set to be erased
---> Package sun-javadb-docs.i386 0:10.4.1-3.1 set to be erased
---> Package sun-javadb-javadoc.i386 0:10.4.1-3.1 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
sun-javadb-common i386 10.4.1-3.1 installed 123 k
Removing for dependencies:
sun-javadb-client i386 10.4.1-3.1 installed 499 k
sun-javadb-core i386 10.4.1-3.1 installed 3.9 M
sun-javadb-demo i386 10.4.1-3.1 installed 3.9 M
sun-javadb-docs i386 10.4.1-3.1 installed 15 M
sun-javadb-javadoc i386 10.4.1-3.1 installed 1.7 M

Transaction Summary
================================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 6 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : sun-javadb-common 1/6
Erasing : sun-javadb-javadoc 2/6
Erasing : sun-javadb-client 3/6
Erasing : sun-javadb-docs 4/6
Erasing : sun-javadb-demo 5/6
Erasing : sun-javadb-core 6/6

Removed:
sun-javadb-common.i386 0:10.4.1-3.1

Dependency Removed:
sun-javadb-client.i386 0:10.4.1-3.1 sun-javadb-core.i386 0:10.4.1-3.1
sun-javadb-demo.i386 0:10.4.1-3.1 sun-javadb-docs.i386 0:10.4.1-3.1
sun-javadb-javadoc.i386 0:10.4.1-3.1

Complete!
[root@localhost snow]#



そして、確認のため rpm -qa で調べてみました

引用:
[root@localhost snow]# rpm -qa | grep java
java-1.6.0-openjdk-1.6.0.0-0.25.b09.fc9.i386
java_cup-0.10-0.k.6jpp.2.i386
tzdata-java-2009e-3.fc9.noarch
java-1.5.0-gcj-1.5.0.0-21.fc9.i386
java-1.6.0-openjdk-plugin-1.6.0.0-0.25.b09.fc9.i386
[root@localhost snow]# rpm -qa | grep sun
[root@localhost snow]#


あとは、以前 HiroKwsさんが投稿してくださった内容(http://fedora.forums-free.com/topic-t128.html)をみて、
同じ状態になれば、
再インストール開始できそうです


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年5月01日(金) 20:05 
オフライン
プライベートメッセージ送信  メール  プロフィール

登録日時: 2008年11月03日(月) 21:48
記事: 271
いきなりですが、まったく違うことに気がつきました

私の環境なんですが
引用:
[snow@localhost ~]$ java -version
bash: java: command not found
[snow@localhost ~]$ which java
/usr/bin/which: no java in (/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/home/snow/bin)
[snow@localhost ~]$ javac
[snow@localhost ~]$ set | grep JAVA
[snow@localhost ~]$ set | grep PATH
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/home/snow/bin
QT_PLUGIN_PATH=/home/snow/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/
[snow@localhost ~]$

となっていますが、

HiroKwsさんの環境では
引用:
[hiro@hirofedora usr]$ java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-Fedora-10) Runtime Environment (build 1.6.0_0-b12)
OpenJDK Server VM (build 1.6.0_0-b12, mixed mode)
[hiro@hirofedora usr]$ which java
/usr/bin/java
[hiro@hirofedora usr]$ javac
bash: javac: command not found
[hiro@hirofedora usr]$ set | grep JAVA
[hiro@hirofedora usr]$ set | grep PATH
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hiro/bin

となっています

すでに、最初の java -version のところで違います

パスが通っていないとおもい調べたのですが、
私の環境では
引用:
[snow@localhost ~]$ which java
/usr/bin/which: no java in (/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/home/snow/bin)

HiroKwsさんの環境では
引用:
[hiro@hirofedora usr]$ which java
/usr/bin/java

となっています

また、PATH をみても
私の場合、
引用:
[snow@localhost ~]$ set | grep JAVA
[snow@localhost ~]$ set | grep PATH
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/home/snow/bin
QT_PLUGIN_PATH=/home/snow/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/
[snow@localhost ~]$


HiroKwsさんの環境では
引用:
[hiro@hirofedora usr]$ set | grep JAVA
[hiro@hirofedora usr]$ set | grep PATH
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hiro/bin


この問題を解決するには、
引用:
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/snow/bin

というように再びパスを設定するのでしょうか?


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年5月01日(金) 21:17 
オフライン
プライベートメッセージ送信  WWW  プロフィール

登録日時: 2008年9月13日(土) 12:37
記事: 250
所在地: 兵庫県
違います。
パスの違いについては、Fedora9とFedora10の違いです。Fedora10からはUbuntuと同じように、*sbinのパスも通すようになりました。Fedora9までは通っておりませんので、今の状態で正常です。

javaについても、HiroKwsさんはオープンソース版のIcedTeaがインストールされている状態です。それはSunのJavaではないので、SunのJavaをインストールしようとしている本筋からは外れます。Javaを学ぶだけなら、IcedTeaやGCJでもいいとは思うのですが、ここでそれを言い出すと混乱の元ですからやめておきます。

むしろ気になるのは、javacコマンドが通っている点です。アンインストールされているならjavacコマンドは存在していないはずなので、HiroKwsさんの実行例のようになるはず・・・。

javacコマンドはどのパッケージによって提供されているか分かりますか?
分かったなら、それを削除してから再挑戦してはいかがでしょうか。

ひょっとしたらjdkパッケージかも知れませんね。インストールしたパッケージのうち、それだけがまだ削除されていないように思います。


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年5月01日(金) 22:28 
オフライン
プライベートメッセージ送信  メール  プロフィール

登録日時: 2008年11月03日(月) 21:48
記事: 271
こんばんわ 
code_air_edgeさん、お返事ありがとうございます

パスの違いは、fedora9 と fedora 10 の違いだったのですね

javac についてですが、自分でわかる範囲で調べてみました
引用:
[snow@localhost ~]$ javac -version
[snow@localhost ~]$
[snow@localhost ~]$ which javac
/usr/bin/javac

ここで気になるのが、アンインストールしたのに javac があることです
引用:
[snow@localhost ~]$ rpm -qa|grep java
java-1.6.0-openjdk-1.6.0.0-0.25.b09.fc9.i386
java_cup-0.10-0.k.6jpp.2.i386
tzdata-java-2009e-3.fc9.noarch
java-1.5.0-gcj-1.5.0.0-21.fc9.i386
java-1.6.0-openjdk-plugin-1.6.0.0-0.25.b09.fc9.i386

jdk のパッケージがまだ残っているのですが、これも削除したほうがいいのでしょうか?
引用:
[snow@localhost ~]$ ll /usr/bin/javac
lrwxrwxrwx 1 root root 27 2009-04-18 18:16 /usr/bin/javac -> /usr/java/default/bin/javac
[snow@localhost ~]$ ls /usr/java/default/bin/
ControlPanel java jcontrol jstack policytool unpack200
HtmlConverter java-rmi.cgi jdb jstat rmic wsgen
appletviewer javac jhat jstatd rmid wsimport
apt javadoc jinfo jvisualvm rmiregistry xjc
extcheck javah jmap keytool schemagen
idlj javap jps native2ascii serialver
jar javaws jrunscript orbd servertool
jarsigner jconsole jsadebugd pack200 tnameserv
[snow@localhost ~]$

/usr/bin/javac はシンボリックリンクのようなので、rm /usr/bin/javac で消してしまってもよいのでしょうか?
そして、この /usr/java/default/bin/javac が原因のような気がしますが、これは関係ないのでしょうか?

自分なりにRPMについて ITPro を見てみたのですが
関連性を調べる手段は、残念ながら見つけることができませんでした

すみませんがアドバイスお願いします


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年5月02日(土) 09:58 
オフライン
プライベートメッセージ送信  WWW  プロフィール

登録日時: 2008年9月13日(土) 12:37
記事: 250
所在地: 兵庫県
削除していいかどうかはその投稿だけでは判断できかねます。

そのファイルがどのパッケージに属しているかを調べるのには
コード:
$ rpm -qf ファイル名

です。今回で言えば
コード:
$ rpm -qf /usr/java/default/bin/javac

を実行すれば、(RPMでインストールされたものならば)パッケージ名を返してくれます。

そのパッケージ名が分かれば、yumコマンドで削除してしまえばよいでしょう。

それが終わったら、HiroKwsさんが示してくださっている手順でインストールをしてみてはいかがでしょうか。


トップへ
 
 記事の件名: Re: fedora 9 で java開発環境導入
投稿記事Posted: 2009年5月02日(土) 11:23 
オフライン
プライベートメッセージ送信  メール  プロフィール

登録日時: 2008年11月03日(月) 21:48
記事: 271
---------
おはようございます

code_air_edgeさん、お返事ありがとうございます

さっそく rpm -qf /usr/java/default/bin/javac で調べてみました

引用:
[snow@localhost ~]$ rpm -qf /usr/java/default/bin/javac
jdk-1.6.0_13-fcs.i586
[snow@localhost ~]$


どうやら、jdk-1.6.0_13-fcs.i586 がパッケージのようです

これを yum erase jdk-1.6.0_13-fcs.i586 で削除してみました

引用:
[snow@localhost ~]$ su
パスワード:
[root@localhost snow]# yum erase jdk-1.6.0_13-fcs.i586

Loaded plugins: fastestmirror, refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package jdk.i586 2000:1.6.0_13-fcs set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
jdk i586 2000:1.6.0_13-fcs installed 134 M

Transaction Summary
================================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 1 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : jdk 1/1

Removed:
jdk.i586 2000:1.6.0_13-fcs

Complete!
[root@localhost snow]#

問題なく削除できましたので、自分の環境をもう一度確認してみました

まず、which javac でみたところ
引用:
[root@localhost snow]# which javac
/usr/bin/which: no javac in (/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/home/snow/bin)

となり、javac へのパスは切れているようです
rpm コマンドでパッケージを確認してみました
引用:
[root@localhost snow]# rpm -qa |grep java
java-1.6.0-openjdk-1.6.0.0-0.25.b09.fc9.i386
java_cup-0.10-0.k.6jpp.2.i386
tzdata-java-2009e-3.fc9.noarch
java-1.5.0-gcj-1.5.0.0-21.fc9.i386
java-1.6.0-openjdk-plugin-1.6.0.0-0.25.b09.fc9.i386


念のため、以前 /usr/java/default ディレクトリが存在した /usr ティレクトリ内もls コマンドで
調べて見ましたが、存在しないため、問題ないようです
引用:
[root@localhost snow]# ls /usr
bin etc games include kerberos lib libexec local sbin share src tmp
[root@localhost snow]#


これで、もう一度、HiroKwsさんが投稿してくださった内容(http://fedora.forums-free.com/topic-t128.html)をみて、
同じ状態になれば、今渡こそ
再インストール開始できそうです


トップへ
 
期間内表示:  ソート  
新しいトピックを投稿する トピックへ返信する  [ 43 件の記事 ]  ページ移動 1つ前へ  1, 2, 3, 4, 5  次へ

All times are UTC + 9 hours


オンラインデータ

このフォーラムを閲覧中のユーザー: なし & ゲスト[0人]


トピック投稿: 不可
返信投稿: 不可
記事編集: 不可
記事削除: 不可
ファイル添付: 不可

検索:
ページ移動:  
cron

無料でマイフォーラムを作成する! · php-BB© · Internationalization Project · 不正利用を報告する · 使用条件/プライバシーポリシー
© Forums-Free.com 2009