$ sudo port install javacc
---> Computing dependencies for readline
---> Fetching readline
---> Attempting to fetch readline-6.0.tar.gz from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/readline
---> 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 http://www.sqlite.org/
---> 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 http://www.ch-werner.de/javasqlite/
---> Verifying checksum(s) for javasqlite
---> Extracting javasqlite
---> Applying patches to javasqlite
---> Configuring javasqlite
---> Building javasqlite
Error: Target org.macports.build 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/Authorizer.java
/usr/bin/javac -nowarn SQLite/BusyHandler.java
/usr/bin/javac -nowarn SQLite/Callback.java
/usr/bin/javac -nowarn SQLite/Database.java
Note: ./SQLite/TableResult.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/usr/bin/javac -nowarn SQLite/Shell.java
./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/libsqlite.la /opt/local/lib/libsqlite3.la
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.
/opt/local/var/macports/sources/rsync.macports.org/release/ports
readline, sqlite3, javasqlite... What was happening? I just wanted to install JavaCC...
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.
ReplyDeleteThanks, Tom! I succeeded in using JavaCC just by unarchiving the latest javacc package.
ReplyDeleteCool, glad to hear it!
ReplyDeleteHi guys I just downloaded the latest version of javacc which is javacc-5.0
ReplyDeletecan anyone tell me how to install and compile any javacc script using the terminal.
By the way, iv downloaded the javacc.zip
Thanks a million for helping me.