ApVSys HomePage

ApplicationVersioningSystem

General


Examples of session
Online documentation

  General information

  The commands:

Example1:

  • The basic apv command
  • illustration that default versions are available without any setting

Information about the current environment:

$ echo $PATH
.:/apv/bin:/usr/bin:/usr/ucb:/usr/sbin:/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin

$ echo $LD_LIBRARY_PATH
/usr/lib:/usr/openwin/lib:/ap/X11R4/sun4/usr/lib

$


Checks the version currently selected in your ApVSys environment

$ apv g++

g++:

Matched toolspec: NONE: default
Chosen version from: "gcc/v2.95.3"

$

It means that the version of the command g++ is the version registered in gcc-2.95.3 and this version is taken into account because this is the default version and there is no toolspec defining a specific one.

 

$ apv vsim

vsim:

Matched toolspec: /home/bertraa/.tool-spec: modelsim/v5.5c
Chosen version from: "modelsim/v5.5c"

$

It means that the version of the command vsim is the version registered in modelsim-v5.5c and this version is taken into account because the line "modelsim/v5.5c" is present in the file /home/bertraa/.toolspec which is the file taken into account when there isn't variable APVSYS_TOOLSPEC_FILES


How to display your current toolspec ?

$ apv -X
No APVSYS_TOOLSPEC_FILES defined, using default: ./tool-spec:/home/bertraa/.tool-spec

   ./tool-spec: does not exist.

   /home/bertraa/.tool-spec:
      ncsim/v3.40p02
      make/v3.79.1
      modelsim/v5.5c
      top/v3.5b12
      fileutils/v4.0
      findutils/v4.1
      fpga_compiler/v3.60

$

It has shown all the rules taken into account to decide the version matching. Let's note that there is nothing about gcc in this configuration but there is well something about the tool modelsim.


Let's check if it works

$ g++ --version
2.95.3

$ vsim -version
Model Technology ModelSim SE vsim 5.5c Simulator 2001.09 Sep  7 2001

$

Ok, life is beautiful, everything is working as expexted!


Last Update: 2020-12-26
Nedstat Basic - Free web site statistics