Ada fails with "Compiler not installed on this system" in Linux Mint - ada

I've had some difficulty trying to obtain a working Ada compiler.
I had been attempting to install avr-ada on a Windows system. I've asked questions and been provided some good suggestions, but not quite there yet.
I've since tried to install and use GNAT on a Mint Linux system, but I keep getting stuck.
I've downloaded and installed gcc-4.8.0.
Installed ok.
I then want to build the GNAT Ada compiler, but the manual is not exactly useful.
Every time I try to find installation instruction for GNAT, I find nothing of immediate use.
For example the details I have found state:
"Building the Ada compiler has special requirements, see below"
But do not appear to have any content for how do build the Ada compiler anywhere.
Any ideas?

You could try your hand at my Slackware guide.
Just install VirtualBox on your Windows box and give Slackware a whirl in a VM. Actually if you don't want/need all the AdaCore stuff, Slackware comes with FSF GNAT out of the box. You don't really have to do anyting except call gnatmake to build your stuff.
But honestly, it's not that complicated to get GNAT GPL and the AdaCore projects up and running on Slackware.
For Debian (if you don't want to use the default Debian Ada packages) you could try the makefile done by Kim Rostgaard Christensen.

As I understand it, Mint is based on Ubuntu, which is based on Debian - so you should be able to install the package gnat; it'll probably be GCC 4.6.
I'm not sure whether you need 4.8.0? If so, or of course if you can't install gnat, you'll need to build it (or to wait until it reaches Debian/Ubuntu/Mint, which could be a while). GCC 4.6 (with Ada support) should be OK for this, or you could install AdaCore's Libre version. I know that GNAT GPL 2012 will build GCC 4.8.0 on Mac OS X; I wrote up building GCC from SVN using GNAT GPL 2011 here, and building GCC 4.8.0 here.

Related

OMNET++ 5.1.1 and Qt

I am installing OMNET++ 5.1.1. However, during the installation, it is reported that:
configure: error: Cannot build Qt apps, probably due to missing or too old Qt packages. Make sure Qt development packages are installed and newer than Qt 5.4. You can disable Qtenv by setting the WITH_QTENV variable to "no" in configure.user.
Then I download and install the Qt from https://www.qt.io/download/. But it still report the same problem. How can I solve this problem ? Thank you.
I assume you're running some kind of GNU/Linux, because on Windows and macOS, the bundled Qt libraries should just work.
Try installing the Qt5 development packages using your distro's native package manager, then they should be detected.
If you can't, or they are too old, take a look in the configure.user file, and adjust the value of the QT_PATH variable according to the instructions there.
EDIT:
Since the OS was clarified: On Windows, you don't need to download Qt, or any other library separately. They are all bundled with the OMNeT++ distribution, and should work fine.
Just make sure you always use the included mingwenv shell to install and run OMNeT++. In it, the environment variables are set up as necessary.
If you are installing OMNET++ on windows make sure you extract the zip file to a folder other than "Program Files" and deactivate your antivirus during the installation process.

Installing iPDC Unix Programme

I am trying to install iPDC on a Centos unix laptop.
I am getting a make error when I attempt to install the programme - I have attached a screenshot of my problem.
The command run is sudo make install and I am attempting to install as the root user.
Your installed GTK version is probably too old to support this software. GtkBuilder (a component within GTK) showed up at version 2.12. To find out what version you have, run pkg-config --modversion gtk+-2.0 at the command line. But that version has been around for quite some time. What version Centos are you running? I assume 5, which is quite old.
Upgrading GTK can be tricky, as most of your desktop software relies on it. If you're in for an adventure, the "easiest" would be to upgrade your Centos OS (to 6.x). You might be able to compile a more recent GTK from source and keep it separate from your system GTK, but that will take some patience.
It seems that GTK is not installed.
Try something like: yum install gtk2 or yum install gtk2-devel

OSX Mavericks + EPD Canopy + mpi4py

having issues with the latest version of OSX and Canopy. I need mpi4py and have never had a problem compiling it with previous operating systems. With 10.9 however, they seem to have moved from gcc to clang and I can't get mpi4py compiled for the life of me. It compiles fine in anaconda, but not with Canopy. Has anyone had any luck with this?
(Enthought Support here)
The latest version of XCode (version 5) that was released with OS X 10.9 Mavericks has removed support for gcc, such that gcc is no longer actually the GNU Compiler Collection, but is symlinked to the clang compiler.
Users still hoping to access a C compiler for their projects, such as in building C-extensions using Cython, should generally not run into any problems in using the symlinked gcc (or directly using clang), as clang uses the same LLVM backend and libraries as Apple's previous gcc compiler.
However, if you are building a C++ library (via clang++) that you will later link with a Python extension, or if you are building a Python extension that uses a C++ library, you need to use the older libraries (libstdc++, and not the clang++ default of libc++) via these compiler/linker flags: -stlib=libstdc++ -mmacosx-version-min=10.6
As it may be preferable for some users, it is still possible to install and use Xcode 4.6.3 on an OSX 10.9, but note that these developer tools do not include the 10.9 SDK.
This information can also be found in our Knowledge Base: https://support.enthought.com/entries/26184115-GCC-Clang-and-Cython-in-OS-X-10-9-Mavericks

compiling programs in scientific linux (pcre)

I'm currently trying to install gtk3 on scientific linux (It is not available on official repositories)
I'm well used to yum, apt, pacman etc but i'm a little lost here when it's about compiling ...
to install gtk3, i need glib, to install glib, i need pcre 8.32.
I thus downloaded the tarball from their site.
Once 'untarred', i followed what is written on that link :
http://www.linuxfromscratch.org/blfs/view/svn/general/pcre.html
but once i've made './configure' with its options, 'make', and then 'make install' glib doesn't configure any better... it says my version is still the old version
configure: error: Package requirements (libpcre >= 8.13) were not met:
Requested 'libpcre >= 8.13' but version of libpcre is 7.8
The files seems to be well compiled but not 'moved correctly to the right place' ...
Did i miss something ?
By the way moving to another distro is not an option :P

Sqlite3 error after Rails 3 (beta 4) install

After Installing Rails 3, I get the following error regarding Sqlite3 when I try to do a migrate:
dlsym(0x1037e5f10,
Init_sqlite3_native): symbol not found
- /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.3.0/lib/sqlite3/sqlite3_native.bundle
I am using Snow Leopard, if that makes a difference.
I faced the same issue. The problem is that your sqlite-ruby interface is not installed properly in your snow leopard. To install that , use the following :-
sudo gem install sqlite3-ruby
But before installing that check if a proper gcc is installed in your Mac.Use the below lines to check that :-
ok First of all check if the follwoing is installed:-
$gcc -v
If not then you have to install Mac developers xcode package in your snow leopard first.
You can download using a free registration from this site:- http://developer.apple.com/devcenter/mac
For more reference take a look into my post : How to install ruby interface for sqlite3 in Mac snow leopard?
If you face the problem the problem even after trying these please let me know the error your facing. Because I faced all the error before making my snow leopard work ;). So I 'm familiar to most of the errors and blunders we usually make ;) !!
Hmm, looks like maybe something isn't compiled correctly. Maybe a gem was compiled on an older system or pre-upgrading to snow leopard? It may be that the sqlite binary is 64 bit but the native ruby extension isn't.
I'd try this:
Install RVM (Or create a new gemset if you're already using it.)
Using a fresh rvm gemset, re-install rails 3
Do bundle install to get all your gems loaded
If the problem goes away then it's likely that your libraries aren't all compiled the same way. This can happen when upgrading to snow leopard from a previous version of Mac OS X. The upgrade would have updated the sqlite binary but not any gems you had compiled yourself, like the sqlite bindings for ruby.
I'm not sure how it's done with Snow Leopard but you need to install The sqlite dev package, libsqlite3-dev
Then install the gem, sqlite3-ruby
Just got to the GEMFILE inside you project and comment out the gems that you do not require.

Resources