Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Installing the Klocwork Server package on Mac

Installing the Klocwork Server package on Mac

This page provides instructions for installing the Klocwork Server package using the installer.

Before you begin

Upgrading? See Upgrading from a previous version.

Where do I get the software?

Download the packages from Klocwork Support. Typically, only one or two users in an organization have access to Klocwork Developer Network. If you don't have access, you can register for a new account.

You need a license. See Getting a license if you don't already have one.

Prerequisites

  • JVM versions: You must install Java 7 or later on your machine before installing the Klocwork Server package or a desktop analysis plug-in. If you have a previous JVM version installed and you try to install the Server, you will see the error message, "Version of Java is too old".
  • Access level: When installing the Mac packages, you must have administrator access.
  • If your organization uses GCC, make sure the correct version of the compiler is in your PATH before you run the installation program. Including the GCC compiler in your PATH automatically creates default links to standard GCC libraries and defines for all the projects you create. Note that any user can override these defaults for a particular project or build by not including the standard libraries and defines. If your organization does not use GCC, do not include it in your PATH when you run the installation program.

Default settings and installation directories

  • The Klocwork Server and desktop analysis packages are installed in the /Applications/ and /Library/Frameworks/ directories.
  • Access command-line tools using the symbolic links in /usr/local/kw/.
  • Due to issues with file locking, user home directories should not be located on NFS. See Failed to lock file or directory: No locks available.
  • The projects_root directory installs to /Users/Shared/Klocwork/projects_root/ by default.
  • The Klocwork Servers are set to localhost, running on the default ports.
  • The Klocwork Server and Database Server need to be running on the same machine.

You can override server settings and specify where the projects_root is created during installation.

Running the installation package

Run the Klocwork Server installation package, following the prompts. Please note the following:

  • The Server Settings screen is where you can adjust:
    • the location of the projects_root directory
    • ports for the Klocwork and Database Servers
  • During installation, you specify whether you want to use the locally installed License Server (Local) or connect to a remote License Server (Remote). Local, the default option, requires you to browse to your license file. If you select Remote, you must specify the host name and port number for your License Server.

Troubleshooting

Check the installation log from the Console (Applications > Utilities) or /var/log/install.log.

Start the servers

Start the servers with kwservice start:

kwservice --projects-root <projects_root> start 
where <projects_root> is the projects_root directory you specified during installation

Example

kwservice --projects-root /space/klocwork/projects_root start 

You see messages indicating that the servers have been started, showing the server host name and port number and the path to the projects_root. For example:

Using projects root: /space/klocwork/projects_root Local Host is: serverxyz.com [13.1.1.142] 
Starting License Server [started on serverxyz.com:27000] (projects root is /space/klocwork/projects_root) 
Starting Database Server [started on serverxyz.com:3306] (projects root is /space/klocwork/projects_root) 
Starting Klocwork Server [started on serverxyz.com:8080] (projects root is /space/klocwork/projects_root)

Log in to Klocwork Static Code Analysis

After starting the Klocwork servers, Klocwork Static Code Analysis is accessible from a browser using the URL of the Klocwork server hostname and the Klocwork server port chosen during the install (for example, server21:8080). By default, the person who installed Klocwork is set as the Klocwork administrator, and is given the Projects root admin role. Initially, the Basic Authentication access control method is used, so no password is needed to log in. For example, if the user account used during the installation was ‘jsmith’, to log in to Static Code Analysis with the administrator role, use the credentials:
username: jsmith
password: <empty>
For more details on security and authentication methods, see Security and permissions.