Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make OpenGrok script work on Mac OS X #687

Closed
vladak opened this issue Nov 7, 2013 · 1 comment · Fixed by #756
Closed

make OpenGrok script work on Mac OS X #687

vladak opened this issue Nov 7, 2013 · 1 comment · Fixed by #756

Comments

@vladak
Copy link
Member

vladak commented Nov 7, 2013

http://tofudev.wordpress.com/2010/12/30/opengrok/ has some instructions.

@vladak
Copy link
Member Author

vladak commented Feb 21, 2014

After the changes to the OpenGrok shell script the guide to run OpenGrok on OS X would be as follows:

  • download OpenGrok (binary distribution) and unpack it to e.g. /Library/opengrok/

  • create install base for OpenGrok

    mkdir -p /var/tmp/base/{src,data,log}
    cp OpenGrok-0.12/logging.properties /var/tmp/base
    
  • store your source code /var/tmp/base/src

  • download (from http://ctags.sourceforge.net/) install Exuberant ctags

    tar xfz ctags-5.8.tar.gz
    cd ctags-5.8
    ./configure
    make
    sudo make install
    
  • download Tomcat 7 (from http://tomcat.apache.org/download-70.cgi) and unpack it to e.g. /Library

    sudo mv apache-tomcat-7.0.52 /Library/

  • deploy the war file

    OPENGROK_APP_SERVER=Tomcat \
        EXUBERANT_CTAGS=/usr/local/bin/ctags \
        OPENGROK_TOMCAT_BASE=/Library/apache-tomcat-7.0.52 \
        /Library/opengrok/bin/OpenGrok deploy
    
  • start Tomcat
    cd apache-tomcat-7.0.52/bin; ./startup.sh

  • index

    EXUBERANT_CTAGS=/usr/local/bin/ctags \
         OPENGROK_DISTRIBUTION_BASE=/Library/opengrok/lib \
         OPENGROK_INSTANCE_BASE=/var/tmp/base \
          /Library/opengrok/bin/OpenGrok index
    
  • go to http://localhost:8080/source/ and search the code !

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant