Bug 201249 - Failing to install java/openjdk7 on PC-BSD
Summary: Failing to install java/openjdk7 on PC-BSD
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-01 13:28 UTC by Dr Sean J. Strand
Modified: 2015-11-08 15:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr Sean J. Strand 2015-07-01 13:28:58 UTC
Cant make/install jdk7 or jdk8.

/usr/ports/java/openjdk7# make install clean
===>  Building for openjdk-7.80.15,1
env: gmake: No such file or directory
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/java/openjdk7
*** Error code 1

What is the trick to correct this error?
Comment 1 Bartek Rutkowski freebsd_committer freebsd_triage 2015-07-01 14:01:13 UTC
What is the OS you're trying to build the port on? Have you tried to install it using pkg? Do you have your ports tree up to date? Do you have 'gmake' installed, since it complains about not being able to find it?
Comment 2 Dr Sean J. Strand 2015-07-03 01:57:55 UTC
Hi Ho, sorry for the delay. Have set out the answers you asked for:
The os is pcbsd version:10.2 (This is a FreeBSD look-a-like!) 
The portsnap is up to date. as is the pg. 
The make is also up to date.
Have installed a new bootstrap, with out any errors. 

Have 4-lines in /etc/fstab as required and re-booted.  
Told to download the i486 ( and the x64 ) jdk7 source file from Oracle. 
Have downloaded both i586 and x86_64 and both jre and jdk source tar files from Oracle and have placed them all in /usr/ports/distfiles/ as required. 
Have read the README files, and have completed the instruction: line  by line! 

Ran the make install ( it finished but with many errors )
% cd  /usr/local/openjdk7/jre
% java -version
realpath: /usr/local/linux-oracle-jre-1.8.0: No such file or directory
openjdk version "1.7.0_80"
OpenJDK Runtime Environment (build 1.7.0_80-b15)
OpenJDK 64-Bit Server VM (build 24.80-b11, mixed mode)

Also after retrying the jdk8-jre ( many errors seen, but it did complete )
% cd /usr/local/openjdk8-jre/bin/
% java -version
realpath: /usr/local/linux-oracle-jre-1.8.0: No such file or directory
openjdk version "1.7.0_80"
OpenJDK Runtime Environment (build 1.7.0_80-b15)
OpenJDK 64-Bit Server VM (build 24.80-b11, mixed mode)

It seems tobe annomilies within the README's for this compiler or general inconsistencies with java? 
 

At least it installed, may be it was the new bootstrap file?
No test have been run on this compiler, yet!  
Thanks for your time, good luck. SEanS
Comment 3 Bartek Rutkowski freebsd_committer freebsd_triage 2015-07-03 08:59:59 UTC
You must realise that while PC-BSD is a fork of FreeBSD and they're very close cousins, PC-BSD is a different operating system, with their own package management and as such, you should look for a solution of your problem on their forums/bug trackers.
Comment 4 Bartek Rutkowski freebsd_committer freebsd_triage 2015-11-08 15:48:03 UTC
Closing this PR as unrelated to FreeBSD project.