Dear Martin, I've updated the installation instructions and added the necessary files to the github repo. Please have a look at: https://github.com/RIPE-NCC/whois/wiki/Installation-instructions If you encounter any issues please report them to ripe-dbm@ripe.net. Kinds regards, Agoston Horvath Senior Software Engineer RIPE NCC On 09/30/2013 01:38 PM, Martin T wrote:
Agoston,
thanks for the reply! I successfully built whois server with maven("mvn clean install"):
Results :
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0
[INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ whois-logsearch --- [INFO] Building jar: /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT.jar [INFO] [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ whois-logsearch --- [INFO] Building jar: /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT-tests.jar [INFO] [INFO] --- maven-failsafe-plugin:2.14.1:integration-test (default) @ whois-logsearch --- [INFO] [INFO] --- maven-failsafe-plugin:2.14.1:verify (default) @ whois-logsearch --- [INFO] Failsafe report directory: /home/dbase/whois-master/whois-logsearch/target/failsafe-reports [INFO] [INFO] --- maven-install-plugin:2.3:install (default-install) @ whois-logsearch --- [INFO] Installing /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT.jar to /home/dbase/.m2/repository/net/ripe/db/whois-logsearch/1.71-SNAPSHOT/whois-logsearch-1.71-SNAPSHOT.jar [INFO] Installing /home/dbase/whois-master/whois-logsearch/pom.xml to /home/dbase/.m2/repository/net/ripe/db/whois-logsearch/1.71-SNAPSHOT/whois-logsearch-1.71-SNAPSHOT.pom [INFO] Installing /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT-tests.jar to /home/dbase/.m2/repository/net/ripe/db/whois-logsearch/1.71-SNAPSHOT/whois-logsearch-1.71-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] whois ............................................. SUCCESS [34.540s] [INFO] whois-commons ..................................... SUCCESS [11:56.325s] [INFO] whois-query ....................................... SUCCESS [2:29.920s] [INFO] whois-nrtm ........................................ SUCCESS [40.190s] [INFO] whois-update ...................................... SUCCESS [2:01.785s] [INFO] whois-api ......................................... SUCCESS [2:42.907s] [INFO] whois-scheduler ................................... SUCCESS [2:41.589s] [INFO] whois-db .......................................... SUCCESS [1:04.806s] [INFO] whois-endtoend .................................... SUCCESS [20.599s] [INFO] whois-oneshot ..................................... SUCCESS [1.297s] [INFO] whois-logsearch ................................... SUCCESS [2.920s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24:37.756s [INFO] Finished at: Mon Sep 30 13:55:42 EEST 2013 [INFO] Final Memory: 218M/371M [INFO] ------------------------------------------------------------------------
Then I create a release("mvn clean install -Prelease"):
[INFO] Replacing original artifact with shaded artifact. [INFO] Replacing /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT.jar with /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT-shaded.jar [INFO] [INFO] --- maven-failsafe-plugin:2.14.1:integration-test (default) @ whois-logsearch --- [INFO] [INFO] --- maven-failsafe-plugin:2.14.1:verify (default) @ whois-logsearch --- [INFO] Failsafe report directory: /home/dbase/whois-master/whois-logsearch/target/failsafe-reports [INFO] [INFO] --- maven-install-plugin:2.3:install (default-install) @ whois-logsearch --- [INFO] Installing /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT.jar to /home/dbase/.m2/repository/net/ripe/db/whois-logsearch/1.71-SNAPSHOT/whois-logsearch-1.71-SNAPSHOT.jar [INFO] Installing /home/dbase/whois-master/whois-logsearch/dependency-reduced-pom.xml to /home/dbase/.m2/repository/net/ripe/db/whois-logsearch/1.71-SNAPSHOT/whois-logsearch-1.71-SNAPSHOT.pom [INFO] Installing /home/dbase/whois-master/whois-logsearch/target/whois-logsearch-1.71-SNAPSHOT-tests.jar to /home/dbase/.m2/repository/net/ripe/db/whois-logsearch/1.71-SNAPSHOT/whois-logsearch-1.71-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] whois ............................................. SUCCESS [3.013s] [INFO] whois-commons ..................................... SUCCESS [38.881s] [INFO] whois-query ....................................... SUCCESS [5.728s] [INFO] whois-nrtm ........................................ SUCCESS [1.799s] [INFO] whois-update ...................................... SUCCESS [5.731s] [INFO] whois-api ......................................... SUCCESS [5.558s] [INFO] whois-scheduler ................................... SUCCESS [2.307s] [INFO] whois-db .......................................... SUCCESS [31.453s] [INFO] whois-endtoend .................................... SUCCESS [21.388s] [INFO] whois-oneshot ..................................... SUCCESS [11.121s] [INFO] whois-logsearch ................................... SUCCESS [12.073s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:19.882s [INFO] Finished at: Mon Sep 30 14:10:11 EEST 2013 [INFO] Final Memory: 232M/405M [INFO] ------------------------------------------------------------------------
I *guess* the whois.jar file needed is the ./whois-db/target/whois-db-1.71-SNAPSHOT.jar? I copied this to /home/dbase/whois-master. In addition, how should the "log4j.xml" and "properties" files look like which are needed according to https://github.com/RIPE-NCC/whois/wiki/Installation-instructions ?
regards, Martin
On 9/27/13, Agoston Horvath <agoston@ripe.net> wrote:
Dear Martin,
You have to compile the source code using maven as per the instruction outlined at
https://github.com/RIPE-NCC/whois/wiki/Development#release
Currently we have no installation instructions.
Kind regards, Agoston Horvath
On 09/27/2013 02:00 PM, Martin T wrote:
Hi,
I would like to install "RIPE Whois Database" locally for testing purposes. I have downloaded the latest release:
dbase@A58:~$ wget -q https://github.com/RIPE-NCC/whois/archive/master.zip dbase@A58:~$ unzip -qq master.zip dbase@A58:~$
..and installed logrotate, sendmail, git, maven, openjdk-7-doc, openjdk-7-jdk, openjdk-7-source, mysql-server and mysql-client packages from Debian Wheezy repository. Mysqld is listening on TCP port 3306 and user dbint is created:
mysql> SELECT * FROM mysql.user WHERE User = 'dbint' ; +-----------+-------+----------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+------------+--------------+------------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+--------+-----------------------+ | Host | User | Password | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv | Show_db_priv | Super_priv | Create_tmp_table_priv | Lock_tables_priv | Execute_priv | Repl_slave_priv | Repl_client_priv | Create_view_priv | Show_view_priv | Create_routine_priv | Alter_routine_priv | Create_user_priv | Event_priv | Trigger_priv | Create_tablespace_priv | ssl_type | ssl_cipher | x509_issuer | x509_subject | max_questions | max_updates | max_connections | max_user_connections | plugin | authentication_string | +-----------+-------+----------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+------------+--------------+------------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+--------+-----------------------+ | localhost | dbint | | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | | | | | 0 | 0 | 0 | 0 | | NULL | +-----------+-------+----------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+------------+--------------+------------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+--------+-----------------------+ 1 row in set (0.00 sec)
mysql>
As I understand, now I need whois.jar file which is an archive containing Java class files? Where can I get this?
regards Martin