2020년 5월 30일 토요일, 리브레오피스(LibreOffice)의 저장소(Repository)를 다운로드 받아 빌드 설정을 하려니 Java 버전 오류가 아래와 같이 발생하였습니다.

./autogen.sh --with-locales="ko" --with-vendor="me" --disable-werror --with-build-version="Built by me" --with-lang="ko" --enable-dbgutil


위의 이미지 설명: 맥운영체제(MacOSX)빌드시 Java버전 최소9이상이어야 하여 빌드 설정 실패

그래서, MacOSX에 openJDK9이상을 설치하도록 진행을 해보았습니다. 이제는 Oracle이 Java JDK를 유료화해버려서, 혹시나 모를 라이선스 문제로 openJDK로 Java버전을 업그레이드 하려고 합니다.

Oracle이 Java를 유료화하면서, 자유오픈소스 프로젝트인 리브레오피스(LibreOffice)에 Java를 사용하기 위해 자유오픈소스로 된 Java구현인 openJDK를 Mac에서 설치해보겠습니다.

openJDK 홈페이지

맥운영체제(MacOSX)에서 openJDK를 쉽게 설치하려면 brew를 이용하여 설치하는 것이 쉽습니다.

AdoptOpenJDK는 JDK를 쉽게 설치할수 있게 사전에 미리 빌드한(prebuild) java binaries를 제공하는 커뮤니티 그룹입니다.

AdoptOpenJDK

이 그룹에서는 MacOSX, Linux, Windows용 JDK바이너리를 제공하고 있습니다.

여기서 제공하는 것을 직접 빌드하기엔 제가 시간이 없으므로 (주말에만 활동하는 자유오픈소스 개발자), brew에서 올라온 AdoptOpenJDK빌드를 사용하여 JDK를 설치했습니다.

아래는 AdoptOpenJDK의 homebrew패키지용 Github 링크입니다.
AdoptOpenJDK/homebrew-openjdk

위의 Github내용에 따라 brew로 'OpenJDK14 with OpenJ9 JVM'을 설치하였습니다.
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk14-openj9

이후에 openJDK14가 설치가 제대로 되었는지 확인해봅니다

% java --version
openjdk 14.0.1 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.20.0, JRE 14 Mac OS X amd64-64-Bit Compressed References 20200427_53 (JIT enabled, AOT enabled)
OpenJ9   - 05fa2d361
OMR      - d4365f371
JCL      - 5757187cae based on jdk-14.0.1+7)

openJDK14설치후, 다시 빌드 설정을 하니 성공하였습니다.

Buy me a coffeeBuy me a coffee


Mac OSX에서 brew를 설치해서 사용하다 

2011/02/23 - [분류 전체보기] - Mac에서 homebrew를 사용해보기.

하드디스크 정리 겸 homebrew를 삭제하게 되었습니다.

cd `brew --prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew


위와 같이 하면 Homebrew 제거 완료.

Buy me a coffeeBuy me a coffee


Mac에서 Homebrew로 패키지를 관리하다 업데이트를 하니 아래와 같은 에러가 났습니다. -_-;;


$ brew update

From http://github.com/mxcl/homebrew

 * branch            master     -> FETCH_HEAD

error: Your local changes to the following files would be overwritten by merge:

Library/Formula/argp-standalone.rb

Library/Formula/aria2.rb

Library/Formula/aspell.rb

Library/Formula/audiofile.rb

Library/Formula/bdw-gc.rb

Library/Formula/boost.rb

Library/Formula/cdargs.rb

Library/Formula/cdparanoia.rb

Library/Formula/cdrdao.rb

Library/Formula/celt.rb

Library/Formula/clisp.rb

Library/Formula/ctags.rb

Library/Formula/d-bus.rb

Library/Formula/dbus-glib.rb

Library/Formula/dialog.rb

Library/Formula/dirac.rb

Library/Formula/dotless.rb

Library/Formula/elinks.rb

Library/Formula/emacs.rb

Library/Formula/erlang.rb

Library/Formula/flac.rb

Library/Formula/flusspferd.rb

Library/Formula/fontforge.rb

Library/Formula/frink.rb

Library/Formula/gambit-scheme.rb

Library/Formula/gawk.rb

Library/Formula/gd.rb

Library/Formula/glib.rb

Library/Formula/gmp.rb

Library/Formula/gnutls.rb

Library/Formula/google-app-engine.rb

Library/Formula/google-perftools.rb

Library/Formula/gpgme.rb

Library/Formula/graphicsmagick.rb

Library/Formula/gtk+.rb

Library/Formula/guile.rb

Library/Formula/hydra.rb

Library/Formula/id3lib.rb

Library/Formula/igraph.rb

Library/Formula/intltool.rb

Library/Formula/jasper.rb

Library/Formula/jnethack.rb

Library/Formula/john.rb

Library/Formula/libao.rb

Library/Formula/libevent.rb

Library/Formula/libexif.rb

Library/Formula/libsigsegv.rb

Library/Formula/libspatialite.rb

Library/Formula/libvirt.rb

Library/Formula/libvpx.rb

Library/Formula/libxml2.rb

Library/Formula/log4cxx.rb

Library/Formula/lua.rb

Library/Formula/monotone.rb

Library/Formula/mosh.rb

Library/Formula/mpd.rb

Library/Formula/mplayer.rb

Library/Formula/mysql-connector-c.rb

Library/Formula/mysql.rb

Library/Formula/nethack.rb

Library/Formula/nmap.rb

Library/Formula/node.rb

Library/Formula/octave.rb

Library/Formula/pango.rb

Library/Formula/parsley.rb

Library/Formula/pbzip2.rb

Library/Formula/pcre.rb

Library/Formula/pdflib-lite.rb

Library/Formula/phpsh.rb

Library/Formula/portaudio.rb

Library/Formula/povray.rb

Library/Formula/proj.rb

Library/Formula/protobuf.rb

Library/Formula/psgrep.rb

Library/Formula/pv.rb

Library/Formula/rabbitmq.rb

Library/Formula/ranger.rb

Library/Formula/rebar.rb

Library/Formula/redis.rb

Library/Formula/redland.rb

Library/Formula/ruby-enterprise-edition.rb

Library/Formula/ruby.rb

Library/Formula/sbcl.rb

Library/Formula/silk.rb

Library/Formula/spatialite-tools.rb

Library/Formula/sphinx.rb

Library/Formula/spin.rb

Library/Formula/streamripper.rb

Library/Formula/swi-prolog.rb

Library/Formula/syck.rb

Library/Formula/tesseract.rb

Library/Formula/ufraw.rb

Library/Formula/unittest.rb

Library/Formula/valgrind.rb

Library/Formula/visualboyadvance.rb

Library/Formula/vpnc.rb

Library/Formula/w3m.rb

Library/Formula/wine.rb

Library/Formula/x264.rb

Library/Formula/xchat.rb

Library/Formula/yaf.rb

Library/Formula/zeromq.rb

Library/Homebrew/compatibility.rb

Library/Homebrew/exceptions.rb

Library/Homebrew/extend/pathname.rb

Library/Homebrew/formula.rb

Library/Homebrew/test/test_versions.rb

Please, commit your changes or stash them before you can merge.

Updating cb377cb..4eb8e9b

Aborting

Error: Failed while executing git pull http://github.com/mxcl/homebrew.git master

$


해결방법은 아래와 같이 하면 됩니다.

sudo chown -R `whoami` /usr/local
cd /usr/local
git reset --hard master


아래는 문제 해결후 메시지입니다. Homebrew가 업데이트 안되어서 식겁했습니다 ㅠㅠ 



$ git reset --hard  master

HEAD is now at cb377cb Update polipo to 1.0.4.1.

Dae-Hyun-Sung-ui-MacBook-Pro:local studioego$ brew update

From http://github.com/mxcl/homebrew

 * branch            master     -> FETCH_HEAD

Updated Homebrew from cb377cbb to 4eb8e9b4.

==> The following formulae are new:

gdk-pixbuf  tcpstat

==> The following formulae were updated:

argp-standalone   gd*      lua* redis

aria2   glib*      monotone redland

aspell*   gmp*      mosh ruby*

audiofile   gnutls*      mpd ruby-enterprise-edition

bdw-gc   google-app-engine      mplayer* sbcl

boost   google-perftools      mysql silk

cdargs   gpgme      mysql-connector-c* spatialite-tools

cdparanoia*   graphicsmagick*      nethack sphinx

cdrdao   gtk+*      nmap spin

celt   guile      node streamripper

clisp   hydra      octave swi-prolog*

ctags*   id3lib      pango* syck

d-bus*   igraph      parsley tesseract

dbus-glib   intltool*      pbzip2 ufraw

dialog   jasper*      pcre* unittest

dirac*   jnethack      pdflib-lite valgrind*

dotless   john      phpsh visualboyadvance

elinks   libao      portaudio vpnc

emacs   libevent*      povray w3m

erlang   libexif*      proj* wine

flac*   libsigsegv      protobuf x264*

flusspferd   libspatialite      psgrep xchat

fontforge   libvirt      pv yaf

frink   libvpx*      rabbitmq zeromq

gambit-scheme   libxml2*      ranger

gawk*   log4cxx      rebar

No external commands were updated.



Buy me a coffeeBuy me a coffee
  1. Favicon of http://www.tfsupplements.com/store/cart.php?m=product_detail&p=3555 BlogIcon hyper fx 2011.11.23 15:48

    This work Korea Creative Commons Attribution-Noncommercial-Share Alike 2.0 Republic of Korea can be used under license.

  2. Favicon of http://www.customessayhelp.com/write-my-essay.html BlogIcon write my essay 2012.03.14 14:39

    i was looking for a long time

  3. Favicon of http://www.annuityace.com/hybrid-annuities/how-hybrid-annuity-works/ BlogIcon hybrid income annuity 2012.03.24 23:15

    This work Korea Creative Commons Attribution-Noncommercial-Share Alike 2.0 Republic of Korea can be used under license.래와

  4. Favicon of http://www.immediateannuitypro.com/fixed-immediate-annuity/ BlogIcon fixed immediate annuity 2012.03.24 23:16

    This is a very useful!I’m still waiting for some interesting thoughts.따

+ Recent posts