Blogged by Ujihisa. Standard methods of programming and thoughts including Clojure, Vim, LLVM, Haskell, Ruby and Mathematics written by a Japanese programmer. github/ujihisa

Friday, December 18, 2009

Trying to Install JavaCC (Java Compiler Compiler)

$ sudo port install javacc
--->  Computing dependencies for readline
--->  Fetching readline
--->  Attempting to fetch readline-6.0.tar.gz from
--->  Verifying checksum(s) for readline
--->  Extracting readline
--->  Applying patches to readline
--->  Configuring readline
--->  Building readline
--->  Staging readline into destroot
--->  Deactivating readline @6.0.000_1
--->  Computing dependencies for readline
--->  Installing readline @6.0.000_2+darwin
--->  Activating readline @6.0.000_2+darwin
--->  Cleaning readline
--->  Computing dependencies for sqlite3
--->  Fetching sqlite3
--->  Attempting to fetch sqlite-3.6.21.tar.gz from
--->  Verifying checksum(s) for sqlite3
--->  Extracting sqlite3
--->  Configuring sqlite3
--->  Building sqlite3
--->  Staging sqlite3 into destroot
--->  Deactivating sqlite3 @3.6.16_0
--->  Computing dependencies for sqlite3
--->  Installing sqlite3 @3.6.21_0
--->  Activating sqlite3 @3.6.21_0
--->  Cleaning sqlite3
--->  Computing dependencies for javasqlite
--->  Fetching javasqlite
--->  Attempting to fetch javasqlite-20060714.tar.gz from
--->  Verifying checksum(s) for javasqlite
--->  Extracting javasqlite
--->  Applying patches to javasqlite
--->  Configuring javasqlite
--->  Building javasqlite
Error: Target returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_javasqlite/work/javasqlite-20060714" && /usr/bin/make -j1 all " returned error 2
Command output: /usr/bin/javac -nowarn  SQLite/
/usr/bin/javac -nowarn  SQLite/
/usr/bin/javac -nowarn  SQLite/
/usr/bin/javac -nowarn  SQLite/
Note: ./SQLite/ uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/usr/bin/javac -nowarn  SQLite/
./libtool /usr/bin/gcc-4.0 -I/opt/local/include -I/opt/local/include \
            -DHAVE_SQLITE2=1 -DHAVE_SQLITE3=1 \
            -o native/mkconst native/mkconst.c /opt/local/lib/ /opt/local/lib/
libtool: warning: cannot infer operation mode from `/usr/bin/gcc-4.0'
libtool: you must specify a MODE
Try `libtool --help' for more information.
make: *** [native/mkconst] Error 1

Error: Status 1 encountered during processing.

readline, sqlite3, javasqlite... What was happening? I just wanted to install JavaCC...


  1. Good heavens... JavaCC doesn't use readline... I don't know what all that's about. Might be easier just to download it and untar it in /usr/local and there you go.

  2. Thanks, Tom! I succeeded in using JavaCC just by unarchiving the latest javacc package.

  3. Hi guys I just downloaded the latest version of javacc which is javacc-5.0

    can anyone tell me how to install and compile any javacc script using the terminal.

    By the way, iv downloaded the

    Thanks a million for helping me.