Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
08-10-2004, 05:04 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Rep:
|
uninstall java 1.4 for DB2 8.1 install
I have not been able to find the answer to this question so far. If it is out there I am sorry! I have java 1.4.2 installed and I need to remove it. I am trying to get the IBM JDK 1.3.1 installed and configured so that I can install DB2 8.1. I have Red Hat WS 3.0 installed and am using KDE for the desktop. I used the RPM to install both but I need to remove them both and start over.
mike
|
|
|
|
08-10-2004, 05:29 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
Hi, and welcome to LQ,
man rpm
/ERASE OPTIONS
should answer that question.
Cheers,
Tink
|
|
|
|
08-11-2004, 11:09 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Original Poster
Rep:
|
thanks for the docs. however in my current newbie skill level I am unable to remove the java version.
rpm -e [--allmatches] [--nodeps] [--noscripts] [--notriggers] [--repackage] [--test] j2re-1_4_2_05-linux-i586.rpm
error: package [--allmatches] is not installed
error: package [--nodeps] is not installed
error: package [--noscripts] is not installed
error: package [--notriggers] is not installed
error: package [--repackage] is not installed
error: package [--test] is not installed
error: package j2re-1_4_2_05-linux-i586.rpm is not installed
Is my syntex correct? do I need to be in a certain folder to issue the command?
mike
|
|
|
|
08-11-2004, 12:41 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
Things in square brackets are optional, they're
never to be taken as literal square brackets.
You should be starting with
rpm -e j2re-1_4_2_05-linux-i586
If that doesn't work read the error messages.
Cheers.
Tink
|
|
|
|
08-11-2004, 01:22 PM
|
#5
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Original Poster
Rep:
|
# rpm -e j2re-1_4_2_05-linux-i586
error: package j2re-1_4_2_05-linux-i586 is not installed
is there a way to see what RPM have been installed?
mike
|
|
|
|
08-11-2004, 02:14 PM
|
#6
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
man rpm ;)
/QUERY
Honestly, you should learn to read man-pages.
People might get the impression that you're completely
lazy if you keep asking stuff like that without an
indication that you've read but not understood the
man-page. And personally I'm quite reluctant to
run a non-payed lookup-service ;)
rpm -qa | grep -i java
Cheers,
Tink
|
|
|
|
08-11-2004, 02:31 PM
|
#7
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Original Poster
Rep:
|
thanks for the info. I am a complete newbie and was getting confused with the syntex the way it is described in the manual. I am starting to get the hang of it now though.
the results showed this
rpm -qa | grep -i java
IBMJava2-SDK-1.3.1-7.0
gcc-java-ssa-3.5ssa-0.20030801.47
redhat-java-rpm-scripts-1.0.2-2
gcc-java-3.2.3-39
javamail-20031006-1
so it seems that I did not install the java 1.4 correctly in the first place. Thanks again for your help
mike
|
|
|
|
08-11-2004, 02:44 PM
|
#8
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Original Poster
Rep:
|
After issue of this command I get an error message
./db2setup
DBI1190I db2setup is preparing the DB2 Setup Wizard which will
guide you through the program setup process. Please
wait.
/home/mike/Desktop/downloads/009_ESE_LNX_32_NLV/db2/linux/install/db2jinst: line 130: 5877 Segmentation fault $JAVA_PATH/$JAVA_INTERPRETER $JAVA_OPTIONS -cp $JAVA_CLASSPATH $DB2SetupRun "$@" 2>/tmp/db2setup.err.running
when I type java I get this.
$ java
libgcj-java-placeholder.sh
This script is a placeholder for the /usr/bin/java and /usr/bin/javac
master links required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.
This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
[mike@isi install]$
Is there any easy ways to fix what looks like a messed up java install?
mike
|
|
|
|
08-11-2004, 03:22 PM
|
#9
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
I'd assume that this script is part of this package:
redhat-java-rpm-scripts-1.0.2-2
Try a
rpm -ql redhat-java-rpm-scripts-1.0.2-2
and see whether it actually is.
If it is part of that (and you already did install the
IBM jdk that DB2 wants) you could erase the
scripts as well, and create a java.sh script
in /etc/profile.d that sets up the environment
variables appropriately ...
Cheers,
Tink
|
|
|
|
08-12-2004, 01:48 PM
|
#10
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Original Poster
Rep:
|
thanks again for your help and patience with my newbie skills.
after issuing the command
rpm -ql redhat-java-rpm-scripts-1.0.2-2
/usr/sbin/javaconfig
does this mean that I need to edit the javaconfig file or erase it and reset the script like you mention above.
mike
|
|
|
|
08-12-2004, 02:21 PM
|
#11
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
You're more than welcome!
Either should work ... I'm not familiar enough
with rpm though to know for sure how rpm
would handle that manually modified file
in case you decided to un-install or update
it later on. My personal approach would be
to remove the rpm it belongs to, and create
a shell script as I mentioned, but then I'm a
control-freak when it comes to my computers ;)
Cheers,
Tink
|
|
|
|
08-19-2004, 04:34 AM
|
#12
|
|
LQ Newbie
Registered: Aug 2004
Posts: 4
Rep:
|
You don't need to uninstall 1.4. Just download and install IBM's JDK 1.3.1 somewhere and do something like
export JAVA_HOME=/opt/IBMJava2-131
check your path
echo $PATH
and if your JDK 1.4.2 is included there you edit it to point to IBM's JDK instead. Something like
export PATH=.....*snip*.....:/root/bin:/opt/IBMJava2-131/bin
if "db2_install" still doesn't work, try "export LD_ASSUME_KERNEL=2.2.5", and retry the "db2_install"
then try ./db2setup.
It worked for me, on Fedora Core 2
//Olle
|
|
|
|
08-23-2004, 08:50 AM
|
#13
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Original Poster
Rep:
|
not to sound like a total newbe but where do i issue those commands? on a command line?
mike
|
|
|
|
08-23-2004, 08:54 AM
|
#14
|
|
LQ Newbie
Registered: Aug 2004
Posts: 4
Rep:
|
Hello
to answer Your question: Yes, on the command line, logged in as "root"
but try this url instead:
http://www-106.ibm.com/developerwork...ary/l-ss4-db2/
You will find all the information You need there,
regards Olle.
|
|
|
|
08-23-2004, 02:54 PM
|
#15
|
|
LQ Newbie
Registered: Aug 2004
Posts: 9
Original Poster
Rep:
|
thanks for the link. I am still having troubles with the IBM docs and getting the IBM SDK correctly working to get my DB2 setup to run.
this is what I get
./db2setup
DBI1190I db2setup is preparing the DB2 Setup Wizard which will
guide you through the program setup process. Please
wait.
/downloads/db2/009_ESE_LNX_32_NLV/db2/linux/install/db2jinst: line 130: 13231 Segmentation fault $JAVA_PATH/$JAVA_INTERPRETER $JAVA_OPTIONS -cp $JAVA_CLASS PATH $DB2SetupRun "$@" 2>/tmp/db2setup.err.running
[root@isi-redhat 009_ESE_LNX_32_NLV]#
Tinkster mentioned a script. Should I add these lines to my .bash_profile?
thanks
mike
Last edited by greatwhite99; 08-23-2004 at 02:57 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:39 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|