Atmospheric Toolbox

Unable to Install VISAN

I have this error when run “cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX”:

=====================
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.

– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable “CC” or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:3 (project):
The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

Could you help me?

To build VISAN from source on Windows you need to have Visual Studio 2015 installed.
You can then invoke cmake as is done for the official conda package build: bld.bat

But why are you building VISAN from source and are you not installing the binary version?

Thank you very much for your answer.

I followed the instruction of the README.txt file

===========================
Copyright © 2002-2019 S[&]T, The Netherlands.

            VISAN 4.0 Release Notes

VISAN is a Visualisation and Analysis application that was designed to be a
front-end for CODA and HARP, but is general enough to be appropriate for a much
wider range of applications. VISAN provides a full Python command line interface
that allows you to read and inspect instrument product data via CODA or HARP,
manipulate the data, and create advanced 2D Plots and Worldplots.

The currently supported platforms are Windows (7 and higher), Linux, and macOS
(10.8 and higher).

Installation

VISAN is available exclusively as a conda package.

To install the binary version for your platform you will first need to install
Anaconda or Miniconda, then activate the conda environment in which you want to
install VISAN, and finally install VISAN itself using:

$ conda install -c stcorp visan

The VISAN application can then be found in your conda environment.

To build VISAN from source, clone the VISAN github repository and create a
conda environment with the VISAN application as follows:

$ conda env create -f environment.yml
$ conda activate visan
$ cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
$ make install

Documentation

Full documentation in HTML is included with the VISAN software.

A version matching the latest development status on GitHub can be viewed at:

http://stcorp.github.io/visan/

Download

The VISAN software can be downloaded from GitHub:

https://github.com/stcorp/visan/

VISAN Developers
S[&]T, The Netherlands

===========================

Do you have another method?

VISAN can only be installed within a CONDA environment. If this is not working for you then please explain the problem you encounter.

I installed VISAN, but it does not work correctly.

Hi, my anaconda environment doesn’t include ‘visan’. How can I solve this problem? Thank you so much.