Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

installing jdk14 for james

Status
Not open for further replies.

vakimova

Technical User
Dec 24, 2005
21
RU
Dear all,
I'm trying to build a mail server on a freebsd box.
They say I should have JVM(jdk14) before deploying james-server.
To build the JVM, they say, I should
cd control/make
(which I have dove) and then just type
gmake
(and here I get)
gmake: not found

Clarification - jdk14 source, bin and patches have been unzipped and implemented ok. Gnu make-3.79 installed.

Can you help me please?

yours`
serguey
 
vakimova,

What is the output of 'whereis gmake'? If it's blank, try:

cd /usr/ports/devel/gmake
make install clean

For that matter, to install jdk14, you could:

cd /usr/ports/java/jdk14
make install clean

which should install all dependencies.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
dear Wishdiak,
I looked for it from the control/make as you told -
#whereis gmake
#/usr/ports/devel/gmake
but then again
#gmake
#gmake:not found
Could it matter that I have jdk14 Makefile in
/usr/ports/distfiles/jvm/control/make ?
After recommended
cd /usr/ports/java/jdk14
make install clean
there was
Makefile:28:***missing separator. Stop.

dear KenCunningham,
trying
./gmake
avails of nothing.

Thank you both.
yours`
serguey



 
vakimova,

If the output of
#whereis gmake
is only
#/usr/ports/devel/gmake
then gmake is likely not installed.

Try:
#cd /usr/ports/devel/gmake
#make install clean
to install gmake from the ports tree.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
dear Wishdiak,

I did as you say and got the following --
#Makefile:19:***missing separator. Stop.

Whither now?

yours`
serguey
 
I asume that you have the ports tree installed
If you don't then you better install them

Now as root run this
Code:
# pkg_add -vr cvsup-without-gui

[red]The output looks like this[/red]
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
setting passive mode
opening data connection
initiating transfer
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.2.1-release/Latest/cvsup-without-gui.tbz...
...edited...
extract: /usr/local/share/cvsup/License
extract: CWD to .
after it finish, create this file
[blue]/usr/local/etc/ports-supfile[/blue]
and put this in
Code:
*default host=cvsup9.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

*default compress

ports-all

now run this
Code:
cvsup -g -L 2 /usr/local/etc/ports-supfile 

[red]output looks like this[/red]
Parsing supfile "/usr/local/etc/ports-supfile"
Connecting to cvsup9.FreeBSD.org
Connected to cvsup9.FreeBSD.org
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection ports-all/cvs
 Checkout ports/CHANGES
 Delete ports/INDEX
 Delete ports/INDEX-5
...edited...
 Edit ports/Tools/scripts/plist
  Add delta 1.6 2004.02.27.21.01.02 green
 Edit ports/Tools/scripts/release/doit.sh
  Add delta 1.5 2004.06.08.21.57.01 murray

When it finished you will have aan up to date ports tree

now you can go to [blue]/usr/ports/java/jdk14 [/blue]
and run
# make install

Beware the package that will download is very big and if you don't have much cpu power the compilation could last for several hours.
But at the end you will have a very good working native jdk, builded for your pc.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
As for gmake or imake or any *make, after you update your ports it will be installed without any problems.....almost


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
dear perluserpengo,
the matter is I can't pkg_add anything at all.
I guess the previous Sysadmin configured a certain filter on the gateway-server.
Neither can I change the configuration because the root passwd was gone together with the Sysadmin.
All I can is to download a file on a PC in the LAN (all of them have Windos OS) where I has put a ftp-server and then get the file into the freebsd box I am building up.

I do appreciate your good will and smart recommendation, however, the line
# pkg_add -vr cvsup-without-gui
brought about the usual message
Error: Operation timed out: unable to fetch 'ftp://......' by URL
pkg_add: 1 package addition(s) failed

ruefully yours`
serguey
 
So the freesbie doesn't have any access to the internet?
You will need to have access to the internet to get the whole thing done right.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
dear perluserpengo,
you have grasped the situation correctly.
So my idea is to prepare a freebsd with a mail-server and swap its hard disk with the one in the present LAN gateway server which is unaccessable but runs ok and has a mail-server with a couple of users who are not guilty of anything and have the right to keep their accounts.

thank you for the info
yours`
serguey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top