Scons failed to install TMV on Ubuntu 14.04 (for GalSim) - scons

I tried to install the TMV library (0.7.1) on my Ubuntu 14.04 laptop, before I can install GalSim package. However, it just failed, and gave these information :
scons: Reading SConscript files ...
Unknown variables: ['LINKFLAGS']
I am using Anaconda Python, and the scons version is: v2.3.4
And, on my MacOX 10.8 laptop, the same TMV library can be installed by the same version of scons without any problem
Thank you very much if you can help me about this!

Do you need to manually specify extra LINKFLAGS for some reason? What are the flags set in your tmv_scons.conf file? If LINKFLAGS is in there, you could try removing that and see if that works.

Related

Configuration of LLVM for Haskell on M1 Mac

I installed Haskell on an M1 Mac following the official guide. During the installation, the following message was prompted:
System requirements
Note: On OS X, in the course of running ghcup you will be given a dialog box to install the command line tools. Accept and the requirements will be installed for you. You will then need to run the command again.
On Darwin M1 you might also need a working llvm installed (e.g. via brew) and have the toolchain exposed in PATH.
I additionally installed LLVM using homebrew:
brew install llvm#12
When trying ...
ghc --make <file>
... I get the following error message:
<no location info>: error:
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM between [9 and 13)
ghc: could not execute: opt
How can I fix that? Or how can I go about the "have the toolchain exposed in PATH" part of the alert? I'm using ZSH, in case this is of relevance.
Probably not the best solution, but I got it working by adding /opt/homebrew/Cellar/llvm#12/12.0.1_1/bin to the PATH variable.

Problems between fftw-2.1.5 libraries and OpenMPI

I am trying to install the MPI FFTW2 libraries (fftw2.1.5) as I need them for a program that only works with that version. The specific library I need is "drfftw_mpi.h" so I try the followed:
./configure --enable-mpi --enable-type-prefix
But it always gives me the following error:
configure: error: couldn't find mpi library for --enable-mpi
In a previous question they solve it by running sudo ldconfig before, but for me it does not work giving the same error. For other mpi software they solve it in this post by passing mpicc as the right compiler to ./configure, with the CC flag CC=mpicc, something that does not work for me.
I have installed Open MPI version 4.0.3 on a Ubuntu 20.04 LTS, and when --enable-mpi is not used I was able to install "dfftw.h" "drfftw.h" "fftw.h" and "rfftw.h", do you have an idea of what I am doing wrong or what should I do to install "drfftw_mpi.h"?

Shared libraries installing gnuplot5.2

I am trying installing gnuplot 5.2 on a Xubuntu 16.04 LTS amd64 machine.
Yesterday I successfully completed the task on another machine.
Today I followed the same protocol: installing some libraries for cairo, pango and libgd.
I then typed:
./configure --with-cairo --with-gd
make
make check
sudo make install
The installation failed. First make check did not provide the set of checking images and gnuplot command exit with the following error:
gnuplot: error while loading shared libraries: libwx_gtk2u_core-2.8.so.0: cannot open shared object file: No such file or directory
It tried installing libwx_gtk2u but the repositories install 3.0 version and the error still persists.
However ldd /usr/bin/gnuplot output the following line
libwx_gtk2u_core-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
ldd do not output any line containing libwc_gtk2u_core-2.8
I am assuming some package (libwx2.8?) or some link is missed. Any hint?
Install libwxbase2.8-dev and libwxgtk2.8-dev.

problems building CodeLite

Having a heck of a time trying to build CodeLite for an ARM-based Ubuntu Linux target. (Build instructions here: http://codelite.org/Developers/Linux). I get an error from CMAKE that says Could not locate GTK2. Looking in the CmakeLists.txt file I can see that this is a result of find_package(GTK2) failing to find GTK2. I think I have installed gtk according to what the CodeLite build instructions say to do using the command sudo apt-get install libgtk2.0-dev.
In terms of cmake, I don't understand what a "package" is. How would I [manually] locate this package on my filesystem and how do I get cmake to find it?
For my aarch64 ubuntu 17.04, the libraries and headers were under /usr/lib/aarch64-linux-gnu, so invoking cmake with them produced the correct build files:
cmake -DCMAKE_INCLUDE_PATH=/usr/lib/aarch64-linux-gnu/ -DCMAKE_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/ -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1

flexdll error with ocaml on cygwin

I just did a fresh install of cygwin64 on windows 10.1.
I installed ocaml package (4.02.3) from the cygwin repository.
I have strange errors related to flexdll :
$ ocaml
OCaml version 4.02.3
#load "str.cma";;
Cannot load required shared library dllcamlstr.
Reason: /usr/lib/ocaml/stublibs/dllcamlstr.so: flexdll error: cannot relocate RELOC_REL32, target is too far: 0xfffffffc12c2a92a 0x12c2a92a.
Do you know what the problem is and how to circumvent it ? In fact, I encountered a similar issue while trying to compile findlib on cygwin from sources.
Best regards,
François
François,
I faced the same problem when trying to compile findlib under cygwin. I was using cygwin's package for ocaml.
My solution has been to uninstall the ocaml package(s) from cygwin, then download and compile ocaml from sources (that is version 4.03.0, instead of 4.02.3 packaged with cygwin), using the following to have the installation replace cygwin's ocaml software:
./configure -prefix /usr -no-curses
make world.opt
make install
Once ocaml installed from sources, configure and build findlib is successful:
cd findlib-1.7.1
./configure
make all
make opt
make install
I hope that helps,
David.

Resources