Why mpifort wrapper is not found after installing mpich and openmpi? - fortran

I need to compile a program that uses mpifort wrapper to create some executables files for multiporcessor usage. (OPENTELEMAC)
I have tried to install mpich and OpenMPI to get this wrapper but it doesn't seem to work. I am using gfotran to perfom this operations.
Could somebody explain to me how do I get this installed?
I am using Ubuntu 14.0 LTS.

Related

Incorrect NET-SNMP Version in BeagleBoneBlack

I work with the Net-SNMP library with C++ on an Debian inside a beaglebone back. I used to work with net-snmp 5.7.1 version. However, I need to upgrade it to 5.9. I did the steps of this tutorial: http://www.cloud-rocket.com/2013/08/compiling-and-installing-net-snmp-for-beaglebone/, but I changed the configuration step to just:
./configure --prefix=/usr --build=i686-linux --host=arm --target=arm-linux --with-ar=/home/ubuntu/angstrom-toolchain/arm/bin/arm-angstrom-linux-gnueabi-ar --with-cc=/home/ubuntu/angstrom-toolchain/arm/bin/arm-angstrom-linux-gnueabi-gcc --with-linkcc=/home/ubuntu/angstrom-toolchain/arm/bin/arm-angstrom-linux-gnueabi-gcc
I updated the compiled files in the beagleboneblack, then I could see the version 5.9 when I executed the command:
$snmpd -version
I also updated the Libraries in the path of the G++ Linker, compiled and uploaded the C++ firmware to beaglebone.
However, inside the C++ firmware, when I call the funcion:
init_snmp("agent");
The output is:
NET-SNMP version 5.7.1 AgentX subagent connected
I was expecting the 5.9 version of it. What I'm doing wrong?

This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.5.0)

When I copy my executable and lib dependencies to another computer and run the program I get this error:
This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.5.0). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.
This error only happens in the new computer. I can run my program on my computer without any issue.
I tried to check with ldd -d and objdump -p engine | grep NEEDED which of the libs are that have protobuf in them, but I can't find them.
My program uses: opencv with Cuda, boost, tensorflow, tensorRT.
Both of the computer OS is Ubuntu 16.04.6 LTS.
How can I find which part has the issue with this conflict?
I tried to recompile opencv without protobuf by adding -DBUILD_PROTOBUF=OFF -DPROTOBUF_UPDATE_FILES=ON -DPROTOBUF_INCLUDE_DIR=/usr/include -DPROTOBUF_LIBRARY=/usr/lib/x86_64-linux-gnu/libprotobuf.so.
This did not solve the issue.
You have two different version libprotobuf, with one installed in /usr/local/lib/ by dynamic library.
But when you build your program, you include other version of libprotobuf.
You can reinstall libprotobuf to solve this question.
If you install libprotobuf from source, make sure you added the flag -Dprotobuf_BUILD_SHARED_LIBS=ON.

Install an old version of MinGW GCC

I need to compile the source code of an application that was successfully compiled using MinGW GCC 4.8.1 the last time. I tried to use the most recent version of the compiler that is available in the MinGW Installation Manager but it doesn't work.
I would like to install the 4.8.1 version but I can't find it in the packages of the Installation Manager. I tried to install it using the command line in windows after adding MinGW to Windows'
mingw-get install "gcc=4.8.1"
But it doesn't work either, some packages seem to not get found by the program and it looks like it's installing the most recent version...
Is there a way to install GCC 4.8.1 on Windows as of today ? I'm on Windows 7 pro and I'm on my computer at work so I can't go too deep in the folders and I don't have administrator rights for everything.
Thanks for your help

mingw without g++ compiler

i am new to linux and I have the following question:
I am trying to install MINGW in Ubuntu.
I ran the command:
sudo apt-get install mingw-w64
It was installed, and if i put the command gcc it runs ok. The problem is g++ command does not work. I guess it is because i don't have the c++ compiler (as I read in similar questions in stackoverflow).
I read too that you can use the next command:
mingw-get install g++
but i don't have the executable program for this command.
My question is, how can I install that executable? or is there another way to update my mingw so I can use the g++ compiler?
Hope I have explained myself correctly. Thank you for any help I receive.
mingw-get is a windows specific package manager, it is not needed when you use a native linux package manager such as APT.
Installing package mingw-w64 depends on package g++-mingw-w64, which depends on g++-mingw-w64-i686 and g++-mingw-w64-x86-64.
These packages install the mingw cross compilers as
/usr/bin/x86_64-w64-mingw32-g++-posix
/usr/bin/x86_64-w64-mingw32-g++-win32
/usr/bin/i686-w64-mingw32-g++-posix
/usr/bin/i686-w64-mingw32-g++-win32
Older versions of mingw cross compiler shipped /usr/bin/i586-mingw32msvc-c++, which is replaced by i686-w64-mingw32-c++-win32
You can usually use this toolchain in a project by running ./configure CXX=i686-w64-mingw32-c++-win32 or make CXX=i686-w64-mingw32-c++-win32
Note: the above description is correct for the most recent toolchain in Debian unstable. It may need some minor tweaking for older systems.

openmpi libraries for c++

I am using an ubuntu 10.04 system and I installed mpi libraries using
sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev
I am able to compile and run pure c-mpi code using the commands mpicc and mpirun but I am not able to compile cpp-mpi code using mpicc
Do I need to install any additional libraries to compile cpp code ?
more googling gave me the answer
I had to use mpicxx to compile and run the code