Netbeans remote support working!

As promised, I have now managed to get the initial build of a C program on the IBM i using the remote build support provided by NetBeans. See my previous posting to see how I set it up the initial connection to my Linux Development environment for more information on the initial steps. The connection to the IBM i was failing due to a function not being available on the IBM i (mktemp).

Note: I completed these steps on our Power8 running V7R3 with all of the OpenSource options installed. You may have to figure out installing other options on lower IBM i OS levels.

I would suggest that before you configure the connection to the IBM i you install the above function using the following instructions.

1. Download the mktemp rpm from the following location and place into a suitable location on the IFS. In our case we installed into /QOpenSys/downloads which we created to use the perzl binaries originally.  I do not think you actually need this to be installed for the build to work?
ftp://www.oss4aix.org/RPMS/mktemp/
2. Call qp2term (or you can use your own terminal of choice) and cd to the /QOpenSys/downloads directory.
3. Install from the rpm using the following command.
rpm --install --nodeps --ignoreos --ignorearch mktemp-1.7-1.aix5.1.ppc.rpm
Note:-  you need the additional flags to allow the install.

These were the steps I followed to connect the IBM i PASE GCC compiler and tools to the Netbeans IDE.

1. Create a new remote build host in the IDE. Just right click the the project and drill down to the manage hosts option.

Add the remote build host

Add the remote build host

 

2. Select the add button to get the following dialog box.

Remote Host address dialog

Remote Host address

3. Click next, this will bring up the dialog to allow the login information to be entered.

Login Information

Login information

4. Clicking next brings up the summary screen where you can see the information it retrieved from the remote IBM i.

Summary of tools found

Summary of tools found

Pressing Finish will add the remote host information to the IDE hosts and set it as the selected host for the project.

Now all that you need to do is compile the file using the options available and you should see the following

Remote build worked

Remote Build worked

This is only the first stage as you will need to set the compiler options and a lot of other settings as part of a real build process, but at least we know the compiles work..

If you want to drill down to see what was compiled you will need to go to your home directory and drill down below the .netbeans *DIR to find the objects created.

Enjoy..

Chris..