Logging out when trying to run FLAIR

Dear @manousos

I did what advised but ERROR is still the same. I am attaching log file.

Thank you for your time
David

out.txt (128.1 KB)

Dear @dgancarc,

Please do the following:
First - and unfortunately - uninstall the XCode
and then remove any command line tools that you have with:

sudo rm -rf /Library/Developer/CommandLineTools

Then re-install Xcode
and the command line tools afterwards with:

xcode-select --install

When the above is finished, please do:

sudo rm -rf /usr/local/flair
sudo port uninstall gcc5 gcc6 gcc7 gcc10 libgcc10
sudo port install gcc9 libgcc9
sudo port install pkg-config
sudo port install py37-matplotlib +tkinter

and send me the output of the above.

Then (re)download the and geoviewer tgz packages from the flair website
and untar them in the location that you’d like flair to be ‘‘installed’’.
For example, ~/Flair (you have to create this folder :wink: )
Please do not use su paths on MacOs, and especially paths under /usr

Then after having unpacked both flair and geoviewer,
enter the geoviewer folder and type (under the same terminal’s tab):

sudo port select --set python3 python37
sudo port select gcc mp-gcc9
make clean
make -j DEBUG=yes

and again send me the output.

With the above done, if any error will insist to exist, we’ll be more able to understand it’s source.

Thanos

Hi @manousos

I reinstalled xCode, but seems that command line tools are already installed:
~ $xcode-select --install
xcode-select: error: command line tools are already installed, use “Software Update” to install updates

pkg-config is missing:
Flair $sudo port install pkg-config
Error: Port pkg-config not found

but I did:
’ Flair $brew install pkgconfig
Updating Homebrew…
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
dbdeployer terrascan
==> Updated Formulae
Updated 67 formulae.
Warning: pkg-config 0.29.2_3 is already installed and up-to-date
To reinstall 0.29.2_3, run brew reinstall pkg-config
Flair $brew reinstall pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.catalina.bo
Already downloaded: /Users/davidgancarcik/Library/Caches/Homebrew/downloads/edcc4297c05f9b8f56859aa882a2dcbb2fa5c8d624ca3fa154913803c225fd41–pkg-config-0.29.2_3.catalina.bottle.tar.gz
==> Reinstalling pkg-config
==> Pouring pkg-config-0.29.2_3.catalina.bottle.tar.gz
:beer: /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 623.8KB’

Here is output of geoviewer folder commands:
geoviewer_commands.txt (92.0 KB)

Everything looks good from my point of view. What should I do next?

Thank you
David

Dear @dgancarc,

for the pkg-config I had a typo.
It should have been:

sudo port install pkgconfig

a command which I should strongly advice to execute.
Now it seems that geoviewer compiled with no errors.
The next step is to install it inside the directory where flair was expanded.
So inside the folder where geoviewer was expanded and installed, please type:

make install DESTDIR=PATH_FLAIR

and replace PATH_FLAIR with the equivalent directory where flair was expanded.
for example: make install DESTDIR=~/flair-3.1

The final step is to configure the environment for being able to run Flair through the command line.
As indicated in the instructions in the website, add the following line
in the ~/.profile :
alias flair=‘PATH_FLAIR/flair’

and replace PATH_FLAIR with the directory path where Flair was expanded.
Please remove any previous flair aliases that you might have.

Then, to run Flair, open a new terminal session and type:

flair

Thank you @manousos ! You are my superhero. It is finally working