Software :: Build A RPM That Requires JAVA_HOME To Be Set Before Install?
Nov 6, 2009
I've managed to create a working RPM that does a bit of system configuration despite having little working knowledge of linux before starting. My RPM appeared to be working for awhile now but as a final test I installed it on a completely fresh install of RedHat enterprise edition 5.2 (after installing prereq rpms). It seems I'm running into a problem that the IMQ program(ie java message queues) will not boot correctly when I do this because it doesn�t know where to find the JRE.
I want to make sure that when my rpm is run the program actually works afterwards, and it won't work without IMQ. I was thinking I would have the RPM modify the IMQ configuration file to provide a -javahome argument when it boots up. I don't think I can set the configuration file to say '-javahome $JAVA_HOME' because the JAVA_HOME environmental variable won't be set until later in the boot up process after IMQ has attempted, and failed, to boot.
so I had thought the rpm could set whatever the value of JAVA_HOME is at the time the rpm is installed as the home for IMQ. So my questions are...
1) how can I require that JAVA_HOME is set prior to running my RPM, and have the RPM not install if JAVA_HOME isn't set
2) is there a good way to have rpm be able to undo the change I made to the configuration file if it is erased? Should I save a version of the old configuration file before I make the changes somewhere to be used?
3) is this the best way to do things, or is there a simpler method?
View 2 Replies
ADVERTISEMENT
Sep 16, 2010
Trying to install SW 13.1 (on DVD) on the following system: M/B Intel: DX38BT Processor Intel Core 2 Quad Q6700 - 2.66GHz, 8MB Cache, 1066MHz FSB, Socket 775 Memory Corsair Dual Channel 8192MB PC10600 DDR3 1333MHz Memory (4x2048MB) Graphics Diamond Radeon HD 3850 Video Card - Viper, 512MB GDDR3, PCI Express 2.0 P/S Ultra 1000W
My goal is to install the i386 build on one partition and the 64-bit build on another. I have been away from Linux for a while and am sick to death of Win7, want to come home. :-}
Booted on i386 side of DVD, system freezes after a couple of lines that start with ATA2. Does not respond to 3 finger salute, ctrl-c, nothing. Have to press reset. I have tried both huge.s and hugesmp.s kernels
Booted on 64-bit side, comes up fine. I performed the install, selected for automatic lilo install. Lilo install hung but I was able to reboot. I booted off the 64-bit side again, entered the following: huge.s root=/dev/sde3 rdinit= ro It booted fully to the login prompt but the keyboard does not work, no input.
View 2 Replies
View Related
Oct 1, 2010
I am trying to build a multiseat linux system(Build a Six-headed, Six-user Linux System LG #124). I am posting some outputs output of lspci | grep VGA
Code:
00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
02:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 8400 GS] (rev a1)
ls /dev/input/mouse*
Code:
/dev/input/mouse0 /dev/input/mouse1 /dev/input/mouse2
more /proc/bus/input/devices
[Code]...
I am having trouble in configuring xorg.conf. I am running Suse 11.3 desktop on my PC. Also, I have one onboard nvidia graphics 6150SE and I have put one nvidia 8400GS 512Mb in the 16X PCIe slot for the additional seat...
So kindly tell me what should I do now or what things are missing ?? For any further info abt my PC plz tell me to post outputs(specify the commands for the same..)
View 11 Replies
View Related
Jan 22, 2010
I'm trying to install a package that requires x11 and complains that it can't find it. It appears my X version is an older one. How can I check which version I have currently installed, just to be sure?
View 5 Replies
View Related
Jul 14, 2011
i am trying to install torrentflux that requires python. but it says python path invalid . though it is installed and path is valid. i have chmoded it to 777 but same problem. I am using centos with LAMP.
here it the screen[URL]...
View 11 Replies
View Related
Apr 29, 2010
'm running openSUSE 11.2 with KDE 4.4.2.
Since i installed KDE 4.* Whenever I go to shutdown, I get the shutdown dialogue, I hit shutdown, it logs me off, shows some text on shutdown screen, and then opens up the GUI again, bringing up a small window, where It asks for the root password, in order to shutdown. If i don't give it the root password, it goes to the login screen.
I cannot, any way, command line, GUI, or anything, shutdown without providing a root password.
If I use the command shutdown now, as root, it logs me off and goes through an endless cycle of logging off, and then asking for root to shut down, and not shutting down (All on the CLI), and everytime i give it the password, it cancels shutdown and goes back to the prompt. I eventually have to pull the battery to kill it in that case..
I have tried chmoding the shutdown scripts to make it work, it doesn't.
View 2 Replies
View Related
Dec 19, 2010
There is a "standalone seamonkey-solibs package for RPM, gxine, etc". But after recent upgrades in -current, I can't use rpm without full seamonkey package installed. Can someone revise the contents of seamonkey-solibs and add missing files to it?
$ LANG=C rpm -qp --qf %{NAME} opera-11.00-1156.i386.rpm
error: opera-11.00-1156.i386.rpm: Header SHA1 digest: BAD
error: opera-11.00-1156.i386.rpm: not an rpm package (or package manifest)
And `rpm2txz -nd opera-11.00-1156.i386.rpm` doesn't work as expected without seamonkey package installed.
View 14 Replies
View Related
May 9, 2011
When I run the install of 'Gmail Backup' (from URL...) an error msg appears stating that I must have python2.5 - I presently have python2.8Is there any way to solve this without destroying my Slackware 13.37 installation?
View 6 Replies
View Related
Feb 22, 2010
Im running opensuse 11.2 on Linux 2.6.31.5-0.1 64Bit, KDE 4.3.1 with 4GB RAM, Intel duo core processor with Intel graphics card. I initially had opensuse 11.1, which i removed and installed 11.2. Initially everything.Then came the problem, the system starts up fine but then after a few hours freezes, monitor powers off and it wont accept commands from the keyboard or mouse. Meanwhile the lights (caps lock, numeric and scroll) on the keyboard blink. The power light is still on and i can hear the hard disk turning.
I have to forcefully turn the power off and restart but can freeze again after random periods.I do lengthy and demanding computations and its common for the PC to run for weeks without turning it off.
View 7 Replies
View Related
Aug 22, 2011
When booting from the Ubuntu 11.04 CD, it asks for user name and password to install. I downloaded the iso twice and did a checksum. Do I need a user name and password before installing? What is the user name and password? I read the documentation and cannot find any entry about user name and password needed when booting fron CD.
View 3 Replies
View Related
Apr 12, 2011
I am trying to install a piece of software that requires a specific versions of several packages. I am using Scientific Linux 5.5 and yum for managing the apps.The problem is that I need, for example ruby >= 1.8.7, but the package for ruby that is the official repositories for SL 5.5 is 1.8.5 and therefore yum says it's up to date.
There are other repositories for SL 6.0 that have ruby-1.8.7. Initially I ignored the fact that they are not for 5.5 and tried to install it manually with rpm. But there was an increasing number of data dependencies for the packages so I gave up. What can I do to avoid this? I suppose installing packages for newer OS version should be ok and they will be compatible with other older libs. But do you really install packages in this manner?
View 1 Replies
View Related
Jan 7, 2011
Whenever I try to either update, or install new software to Ubuntu 10.10, I get this error...
Requires Installation of Untrusted Packages
The action would require the installation of packages from not authenticated sources.
View 2 Replies
View Related
May 24, 2010
You can install Java either using "Synaptic Package Manager" or using "apt-get install java-6-openjdk" command.Java will be installed to the location "/usr/lib/jvm/java-6-openjdk"Now open a terminal and type "sudo gedit /etc/bash.bashrc ".Append the following lines to the opened "bash.bashrc" file
"export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/"
"export PATH=$PATH:$JAVA_HOME/bin"
Save & close the "bash.bashrc" file
[code]....
View 1 Replies
View Related
Jul 28, 2010
Tomcat installation requires JAVA_HOME to be defined. In Windows it is straight forward. But in Linux binaries are in one folder and libraries are in other folder.
Is there a way to find out where exactly is JAVA_HOME?
View 4 Replies
View Related
Apr 29, 2010
I downloaded grails-1.2.2.zip in root then did following in .bashrc
Code:
export GRAILS_HOME=/root/grails
export JAVA_HOME=/root/jdk1.6.0_20/bin
rebooted the system.
Code:
[Code]...
View 2 Replies
View Related
Jan 10, 2009
I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell. I have set JAVA_HOME in my /etc/profile, like this:
But when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:
Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:
And when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).
I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?
I have particularly a problem with a Java application, which I want to run. When I type ant, I get: error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/java/bin/java.
View 1 Replies
View Related
May 13, 2010
I tried to install the nutchwax and hadoop as a prequisite for the wera.
Problem:
localhost:
Error: JAVA_HOME is not set.
source code:
View 2 Replies
View Related
Aug 1, 2010
My OS Ubuntu 9.04
I installed java via
Code:
Code:
Code:
Now logged out and logged in again in my system checked
Code:
and
Code:
After which I type on command prompt
Code: ant and get the following error
Code:
Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/jvm/java-6-sun/bin/bin/java
both the file ant.sh and jdk.sh are executable.
View 1 Replies
View Related
Aug 1, 2010
My OS Ubuntu 9.04I installed java via
Code:
apt-get install sun-java6-jre
also I downloaded ant-1.8.1 binary
[code]....
View 1 Replies
View Related
Jan 10, 2009
I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell. This is a question for the 'Linux Newbie' forum (not slackware-specific).
I have set JAVA_HOME in my /etc/profile, like this:
But when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:
Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:
And when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).
I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?
I have particularly a problem with a Java application, which I want to run. When I type ant, I get:
error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/java/bin/java.
View 1 Replies
View Related
Sep 4, 2009
I was wondering why
Code:
Is echoing NO even though
Code:
View 2 Replies
View Related
Feb 13, 2011
I have installed jdk1.60_23 i have created a directory named java in root's Home, jdk has installed in jdk1.60_23 directory in java how to set path to compile or run the java file ?
I did like this : export JAVA_HOME=/usr/bin/java/jdk1.60_23/bin export PATH=$JAVA_HOME:/usr/bin/java/jdk1.60_23/bin
How check the path has properly set or not ? how and where create source file of java ? how to compile and run the java source file ?
View 2 Replies
View Related
Feb 9, 2010
Where to write JAVA_HOME? In .bashrc or in .bash_profile? What's the difference?
View 1 Replies
View Related
Aug 1, 2010
OS Ubuntu 9.04
I have in /etc/profile.d/jdk.sh
Code:
But when I am typing
Code:
which java I see
Code:
Which is not set in PATH.
View 4 Replies
View Related
Jul 3, 2010
How to:
1. check JAVA version,
2. set up the JAVA_HOME and
3. CLASSPATH variables
I had installed
1. NetbeansIDE 6.7.1 from Software Center
2. MySQL from command sudo apt-get install mysql-server
3. libmysql-java from synaptic package manager
OS Information
1. Partition 1, 3.0 GB Swap Space, /dev/sda1
2. Partition 2, 6.0 GB Filesystem, /dev/sda2 mount at /, Bootable
3. Partition 3, Ext4, /dev/sda3 mount at /home
4. Partition 4, /dev/sda4, Extended (Drive A, Drive B and Drive C)
View 3 Replies
View Related
Dec 14, 2009
I'm trying to install some wireless drivers, but apparently I don't have a /lib/modules/<kernel>/build directory, which is causing the Makefile to throw an error. Is there a specific place I should point the Makefile at?
View 9 Replies
View Related
Apr 15, 2009
I have some Flex and Java files which can be compiled with JDK1.5. My server was already loaded with 1.4 (at path /usr/bin/java) and our sys admin(I dont know why) copied another JDK, JDK 1.5 at path /usr/java/jdk1.5.0_16/. It seems very easy to use this java. Just set the path in .bash_profile. I did it and now if I run which java I still see the path for java 1.4 not java 1.5. Am I doing something wrong? Following is actual entry from bash_profile
Code:
PATH=$PATH:$HOME/bin
PATH=/usr/java/jdk1.5.0_16/bin:$PATH
JAVA_HOME=/usr/java/jdk1.5.0_16/
export PATH JAVA_HOME
View 3 Replies
View Related
May 3, 2011
I installed openjdk version of Java using yum what is the openjdk Home directory?
Is there a command to find it?
View 10 Replies
View Related
Dec 30, 2009
I installed "jdk1.6.0.bin" and "jre1.6.0.bin" successfully. But I don't know where they are installed. I can't find anywhere. What is the default path they are installed.I want to set JAVA_HOME.
View 1 Replies
View Related
Oct 22, 2010
/usr/lib/jvm/java-6-sun-1.6.0.20/bin
Code:
Have the default entries no changes with them.
Code:
Code:
When I run mvn get error
Code:
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/java I am not having any clue as what is this error? As to me JAVA_HOME seems to be defined.
View 5 Replies
View Related