c9c4 [Solved] Can't install OpenJDK6 on FreeBSD 8 release - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old June 9th, 2010, 08:07
olav's Avatar
olav olav is offline
Member
 
Join Date: Apr 2010
Location: Norway, Stavanger
Posts: 344
Thanks: 27
Thanked 23 Times in 22 Posts
Default Can't install OpenJDK6 on FreeBSD 8 release

When I try to install /usr/ports/java/openjdk6/ with # sudo make install clean I get this error message:

Code:
checking for XTST... configure: error: Package requirements (x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) 
were not met:

Requested 'xext >= 1.0.99.4' but version of Xext is 1.0.5
Requested 'xextproto >= 7.0.99.3' but version of XExtProto is 7.0.5

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XTST_CFLAGS
and XTST_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

===>  Script "configure" failed unexpectedly.
Please report the problem to x11@FreeBSD.org [maintainer] and attach the
"/usr/ports/x11/libXtst/work/libXtst-1.1.0/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/x11/libXtst.
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
*** Error code 1

Stop in /usr/ports/java/openjdk6.
*** Error code 1
Why do Java need a x11 library? What can I do to resolve this?

Last edited by olav; June 10th, 2010 at 16:05. Reason: solved
Reply With Quote
  #2  
Old June 9th, 2010, 08:37
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,523
Thanks: 422
Thanked 607 Times in 475 Posts
Default

update xext and xextproto ports, and then try again
Reply With Quote
  #3  
Old June 10th, 2010, 12:26
olav's Avatar
olav olav is offline
Member
 
Join Date: Apr 2010
Location: Norway, Stavanger
Posts: 344
Thanks: 27
Thanked 23 Times in 22 Posts
Default

Thanks, I updated libXext and xextproto, and it worked. But when I type javac -version I see version number 1.6.0_07, is that supposed to be correct?

Last edited by DutchDaemon; June 10th, 2010 at 13:56.
Reply With Quote
  #4  
Old June 10th, 2010, 13:08
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,523
Thanks: 422
Thanked 607 Times in 475 Posts
Default

hmm, I think it should be 1.6.0_9
Reply With Quote
  #5  
Old June 10th, 2010, 14:46
olav's Avatar
olav olav is offline
Member
 
Join Date: Apr 2010
Location: Norway, Stavanger
Posts: 344
Thanks: 27
Thanked 23 Times in 22 Posts
Default

Hmm I figured it out. You have to set JAVA_HOME to the correct installation.

Code:
export JAVA_HOME=/usr/local/openjdk6
export PATH=$PATH:$JAVA_HOME/bin
Then write
Code:
java -version

openjdk version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b19)
OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)
Voila!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New 8.0-Release Install fails after Reboot gmccroan Installing & Upgrading 4 July 2nd, 2010 15:59
[Solved] Problem with install kernel on Release 8.0 spon Installing & Upgrading 14 March 31st, 2010 14:59
Toshiba NetBook/FreeBSD 8 Release install... dbuckhal Mobile Computing 6 March 19th, 2010 12:12
[Solved] Best advice for upgrade FreeBSD 7.2-RELEASE-p4 to last FreeBSD 8.0 Release mfaridi Installing & Upgrading 4 January 12th, 2010 15:36
8.0 Release Install Problem RunnerFL Installing & Upgrading 27 December 4th, 2009 13:34


All times are GMT +1. The time now is 06:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0