Home > 12.04 > Installing netcdf c++ interface on 12.04.1

Installing netcdf c++ interface on 12.04.1

October 4Hits:8
Advertisement

I am using a code which employs the modern netCDF c++ interface (netcdf namespace, include file is called just netcdf without .h or similar, ncFile class, etc) and have just switched to 12.04.1.

I installed netCDF and libnetcdf6 with apt-get, but I still get the "old" headers in /usr/local/include (netcdf.h, netcdfcpp.h, etc).

In Ubuntu, the library version for netCDF is 4.1.1, while at my own computer with Mac Os X (where I have the right netCDF include file) the version is 4.2.1.1.

I cannot modify the source code I am using. I would like to know if there is a way to upgrade the netCDF library on Ubuntu to support the modern c++ interface, or, if I have to manually compile it, if you think that using src2pkg is a good idea. This is my first experience with Ubuntu.

Answers

Open your terminal and run these commands:

wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.2.1.1.tar.gz
tar -xvf netcdf-4.2.1.1.tar.gz
cd netcdf-4.2.1.1
./configure
make
sudo make install

For more information, in the netcdf-4.2.1.1 directory you will have a README file.

Related Articles

  • Installing netcdf c++ interface on 12.04.1October 4

    I am using a code which employs the modern netCDF c++ interface (netcdf namespace, include file is called just netcdf without .h or similar, ncFile class, etc) and have just switched to 12.04.1. I installed netCDF and libnetcdf6 with apt-get, but I s

  • Installing netcdf libraries - processor not allowed errorOctober 23

    I'm trying to install netcdf libraries (v3.6.3), as I need them to be compiled with mcmodel=large to allow a simulation to run (the simulation uses ifort, and currently gives 'relocation truncated to fit' errors) in some of the netcdf functions. The

  • multilib confilict trying to install netcdf-develMarch 10

    I'm trying to install netcdf-devel using fedora. I was getting multilib conflicts with hdf5 libraries, so I uninstalled all hdf5 and netcdf packages to try and start from scratch. I then tried sudo yum install netcdf-devel and got the following: Load

  • How to install ubuntu unity interface , from xubuntu installation?

    How to install ubuntu unity interface , from xubuntu installation?September 28

    I wanted to try out unity interface , but currently xubuntu is installed , which package should i install ? I tried to install "unity" package directly , but the unity panel on left won't show up --------------Solutions------------- The left pan

  • ifconfig fails to install route if interface ip is existing broadcast addressMarch 9

    Consider the following setup: X@Y:~$ sudo ip link add link eth0 name eth0.3 type vlan id 3 X@Y:~$ sudo ip link add link eth0 name eth0.2 type vlan id 2 X@Y:~$ sudo ifconfig eth0.2 192.168.2.1/30 X@Y:~$ sudo ifconfig eth0.3 192.168.2.2/29 X@Y:~$ route

  • Help installing perl Net::Interface moduleOctober 15

    Hello All, I am trying to install PacketFence under Ubuntu 11.10 the installation succeeded but when i am executing the configurator.pl is ending with error module missing showed below i tried install the module as follows Code: perl -MCPAN -e 'insta

  • Installing USB Network Interface Drivers Kali LinuxOctober 30

    I bought a network interface to finally make my (persistent) live usb Kali work on my Macbook pro. Network Interface : DLink Wireless N Nano Usb Adapter DWA-131 E1 which uses the Realtek RTL8192EU chipset The problem is I can't install the drivers. A

  • Can I install a firewall interface without `menu`?

    Can I install a firewall interface without `menu`?November 19

    I need an interface for ufw (uncomplicated firewall) that does not depend on "menu", which is outdated and messing with software updates/installations. I don't mind building from source but prefer a deb. --------------Solutions------------- Fire

  • pre install question RE: interface IP setup...November 9

    hi there, is it possible to setup ISPConfig so that it runs behind a firewall and has the necessary ports forwarded to it? i know that with at least one other similar product (ispCP), the server that is running it need to have an interface assigned a

  • After Foreman install, my Icinga interface is not workingSeptember 24

    I installed Foreman now my nagios (Icinga actually) is not working. The URL is /icinga/ but it just says: The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved. Icinga is running. Anyone know why th

  • How do I install Multilingual User Interface (MUI) for Terminal Services on Windows 2008 Server (not R2)?December 11

    Windows Server is based on Vista, so most guides online are useless. Moreover, the Microsoft download page that allows me to download the image file (which presumably contains the language pack CABs) has broken links for the install instruction pages

  • installing python interfaceNovember 10

    I tried to install the Python interface to the Redis key-value store. https://github.com/andymccurdy/redis-py I got the following error: [shantanu@server andymccurdy-redis-py-60e3be5]$ python setup.py install Traceback (most recent call last): File "

  • How to install the Android ADB Interface on an HP 8 Tablet?August 18

    I purchased an HP 8 Tablet today running Android 4.2. When I plugged the USB cable into my Windows 8.1 laptop it recognized the device and let me browse the internal storage but the device had a warning icon in Device Manager and it said the driver w

  • GnuPG::Interface fails to install on CentOS 7January 28

    I'm trying to install a CentOS 7 server to run Request Tracker. By running make testdeps I can see all missing packages and make fixdeps is supposed to install this packages. There is one package that I can't install (GnuPG::Interface). This package

  • Installing gfortran and netcdfSeptember 28

    I installed netcdf and gfortran for my code. but don't know how to link it with the code. I am new to working with linux. any help?

  • Windows 7 has no internet connection after driver install

    Windows 7 has no internet connection after driver installSeptember 16

    I have windows 7 on my laptop. It has had an Internet connection for weeks. I installed a WACOM art pen driver which was for Vista. After rebooting, I have no Internet connection (It just says: "Unidentified network, No network access") My desk

  • Uninstall Unity, rewind to old UNR interface, keeping 10.10?

    Uninstall Unity, rewind to old UNR interface, keeping 10.10?November 4

    I've upograded 10.04 to 10.10 on my netbook. The unity interface doesn't work for me, it just gets in the way. I can change the gdm choice at boot to put me into good ol' gnome, which is better than unity but not nearly as nice as the 10.04 UNR. How

  • how to boot and install opensolaris using USB driveMarch 23

    I have a server that does not have a CD/DVD drive.. How can opensolaris be installed using USB interface? specifically what tools/steps that need to be performed to prepare USB flash drive as install media? --------------Solutions------------- If you

  • Installing XFCE desktop (package: xubuntu-desktop) alongside GNOME desktop (package: ubuntu-desktop): ubuntu-desktop breaksApril 22

    The Issue I'd like to install the XFCE interface alongside the GNOME interface that comes preinstalled with Ubuntu. However, when I try to install the package xubuntu-desktop, I end up with this: [kahless]# aptitude install xubuntu-desktop Reading pa

  • Need advice to install Unix-like OS on my LaptopMay 4

    I'm a CS undergraduate, and I'm a newbie to the Unix-like OSs. We used Fedora in our labs, but I've not mastered it. I've installed Windows 7 on my laptop and I want to install this Unix-based OS. These are my laptop capabilities: Processor : Intel i

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.676 s.