SAP Netweaver 7.0 with MaxDB Testdrive on Ubuntu 9.04 server

Last night I managed to get the SAP Netweaver 7.0 (2004s) with MaxDB TestDrive working on an Ubuntu 9.04 server. It took a bit of fiddling, and I am still looking at improving the installation, but I got the server up and running, which was wonderful.

I still mean to write up a walk-through of the exact steps it took to get it going, including the posts that helped me solve various problems, but for now, here are some of the points I remember:

For starters, you need to install csh and libstdc++5. This makes me think that the install won’t work on later versions of Ubuntu, because I don’t see a package with libstdc++.so.5 in any packages on karmic (Ubuntu 9.10).

During the installation, you get a message about grep requiring a value for the -e option. This is caused by the script that creates the fake network interface, which adds “-e” to the beginning of the new lines it adds to /etc/hosts. The network interfaces are created successfully, but you need to remove the “-e” from /etc/hosts.

Next, the .cshrc file of the n4sadm user (~n4sadm/.cshrc) contains a bad setenv option right at the bottom where the paths are separated by spaces instead of colons in a few places. Replacing the spaces with colons solved the problem. I am not sure whether this is caused by the install script, and whether this indicates some incompatibilities between the script and dash (which /bin/sh links to on Ubuntu).

To get the database started, I had to rerun a portion of the install script as per the instructions near the bottom of this post on SDN.

The demo license you receive from SAP is (thankfully) not a .rpm file like the documentation says (it was in the old evaluations), but installing it with saplicense -install did not work. I had to log on to the system and install the license with the SLICENSE transaction.

The main thing that I think remains to be done now is to fix the script that creates the fake network interface, and get it to run on boot.

The last time I installed an evaluation version of SAP on Linux was in 2001 on SuSE Linux 7.2 Professional (which I happened to have bought – I have not paid for a Linux distro since).  Unfortunately the Linux Testdrives that SAP makes available are made to work on paid-for Linux distributions like RHEL or SuSE, so getting them working with a different distribution is somewhat of a challenge.

It sure is a thrill though to log into and commandeer your own SAP system. To misquote Jack Sparrow from the first Pirates of the Carribean movie: “Wherever we want to go, we go. That’s what a NetWeaver Application Server is, you know. It’s not just a kernel and a dispatcher and work processes; that’s what a NetWeaver Application Server needs. Not what a NetWeaver Application Server is. What the Testdrive really is, is freedom.”

Tags: , , ,

  • David

    Hi there, thanks for the write up

    Can you expand more on what is actually written to etc/hosts re the fake network interface

    I’ve just installed the Netweaver 2004s TestDrive on Ubuntu Server (64bit) 10.10 (using the IBM JDK as advised by SAP) and can only see one new entry added by the installer to etc/hosts as follows:

    192.168.159.132 n4shost

    Can you also please share the exact steps you followed re using the SLICENSE transaction to apply the license file

    I have a license file now from the minisap license site

    I would normally use the VisualAdministrator to install a license but since I cannot get the J2EE engine to start (the default trace seems to show log entries complaining about a license issue), the VisualAdministrator consistently fails to connect to the J2EE engine

    For your reference, I used the following guides as well as yours to complete the installation

    Piers Harding
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5412

    http://forums.sdn.sap.com/thread.jspa?threadID=123170

    Hope you can help

    Many thanks

  • admin

    Hello David,
    Sorry for taking so long to reply. After reading your comment, I first had to go install the Testdrive on Ubuntu server again, which I did, this time on 10.04 server.
    For the SLICENSE license installation, you need to click the “New Licenses” button on the toolbar. This will allow you to select a file from the filesystem (the N4S.txt file you received from SAP) and install that. The default is to install old-style licenses, which does not work with the long license key.
    I have an entry just like you in /etc/hosts: 192.168.155.1 n4shost
    This time round I copied the install.sh script to the hard drive, and edited the first line to run with /bin/bash. (I had to edit the location of the DVD as well, and I relinked /bin/sh as per Piers’ post as well – not sure if that was necessary). After that the installation ran smoothly, but I had to re-execute the four lines relating to xuser as per the SDN forum post I referenced above.
    Hope this helps.
    Martin

  • David

    Thanks for confirming Martin

    I eventually worked out how to install the license

    I installed it via the Java GUI and installed
    it *again* via the Visual Administrator

    I can now get the the J2EE engine to start and can log into the
    portal UME without issue but now I see a different problem :-(

    I can get to the root URL for the J2EE server and can
    launch the portal NWA and the UME without issue
    via my browser but I continue to get a 404
    response from the /irj/portal url which is odd

    I get the same outcome with Ubuntu 10 desktop
    and Ubuntu 10 server

    I’m now wondering if you are using a different install
    set to me

    I got my install DVD from the SAP store online
    ref SAP Netweaver 2004s Testdrive SAP
    Web Application Server on Linux (50 077 574)

    Which DVD do you have?

    if you get the time, if you can list your exact
    steps and your environment setup, maybe I can work out
    where I’m going wrong :-)

    Thanks again