Folks,
Our application is distributed in binary form to many of our customers. The application was compiled on Ubuntu 12.04 and is dependent on libboost-thread1.46.1, among other things.
All of our customers also have Ubuntu 12.04 on their servers and our application worked just fine.
As some customers have indicated that they might use Ubuntu 12.10 in future, we built a new box with Ubuntu 12.10 and tried to install the needed dependencies. However, libboost-thread1.46 is no longer found in Ubuntu standard repositories. The version that seems to be available is libboost-thread.49 and libboost.thread.50.
I am wondering if there is a way to install libboost.thread1.46 on Ubuntu 12.10. This would obviate the need for recompiling the application.
Thank you in advance for your help.
Regards,
Peter
Related
I have Fedora 31 installed which has gcc 9.3.1 installed into it.
I want to install gcc 4.8.5 on my machine.
Tried compiling the gcc by downloading tar file from gnu website, but facing lot of compilation errors.
Can anone help me with the installation.
Thanks in advance.
The compiler you are looking for was in a Fedora release many many years ago and will be hard to reasonably get going on a current Fedora Linux system.
However, it is the compiler in RHEL 7, and therefore in CentOS. Your best bet is to install one of those operating systems in a virtual machine. (You can get RHEL for individual use through the RH Developer Program.) In Fedora Workstation, the Boxes program makes it easy to set up such a VM.
You could also use a docker or podman container, but that will take a little more understanding.
Interesting delema.
Trying to compile Qt program where Qt is build from source on 18.04 64-bit and run it on 14.04. The interesting part is trying to identify which libraries I need this time. The C++ ABI has changed.
Looking to see if anyone else has done this recently? Which libraries do I have to bring along? Yes, I know about ldd and readelf and have spent days trying this in various VMs. The problem is once you start bringing the C++ stuff over (because the ABI has changed yet again) you get to a point where your VM won't reboot.
Please don't suggest snappy, flatpak or one of those other new "container" solutions. Already wasted 3+ days on snappy. It's architecture specific and only supports building on 14.04 when it comes to Qt, at least the deployqt tool to make an AppImage does.
Did this years ago with this very program. Built a debian which would install on both 64-bit and 32-bit for every version from 12.04 to 15.04 including the short lived .10 and odd year versions.
I tried compiling QT with C++11 standard, but, it will no longer compile with that standard.
The incompatible ABI is the real killer.
It is more than one program so the hack of a shell script using LD_LIBRARY_PATH would bring considerable difficulty.
Appreciate insights.
Thank you.
Please always develop applications on the oldest distribution you still want your application to run on. For example, if you want your application to run on all currently still-supported versions of Ubuntu, then develop your application on Ubuntu 14.04 and do not install any newer compilers or libraries than what it comes with.
This is how "backward compatibility" works.
So I have been trying to install the graph-tool module on my Ubuntu system all day now. I just cant seem to figure it out. Basically I want to use the package in jupyter notebook (in an anaconda enviroment). I followed several installation instructions, but nothing seems to work.
This for example: https://gist.github.com/dlozeve/ed59bba8bc8cb9b21e2af36cc9766938
I get to the configuration (adjusting for the fact that I am using python2.7),
./configure --prefix=/home/timo/anaconda2/envs/graph/ --with-python-module-path=/usr/local/lib/python2.7/site-packages
yielding:
configure: error: *** A compiler with support for C++14 language features is required.
Does anyone know what I might be doing wrong? Or as a simpler way to get graph-tool to work in my jupyter notebook?
Thank you very much!
The configure script is telling you exactly what is wrong: You need a compiler with C++14 support. This just means that your GCC is too old.
(You haven't told us any pertinent detail, such as the compiler version you have, library versions, etc, so we can only guess. But luckily, the configure diagnostics is crystal clear.)
A simpler way to install graph-tool would be for you to upgrade your distro (14.04 is outdated) and use the Ubuntu packages, as described here: https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#debian-ubuntu
As graph-tool does not seems to run in an anaconda environment and Ubuntu 14.04 does not have support the latest C++ compiler that is needed, I did install Ubuntu 16.04 and followed firstly [https://www.google.de/amp/s/www.rosehosting.com/blog/how-to-install-jupyter-on-an-ubuntu-16-04-vps/amp/] and then finally installed graph-tool as described on the homepage.
This way I get to use jupyter notebook and am still able to import graph-tool.
I've set up a CentOS 6.5 box running jenkins, among other things, which I want to use for building a project I'm working on with a couple of friends. It's designed to run on Windows, as we all have windows.
The problem I'm having is that I haven't found a cross-compiler that works on CentOS. Everything I've seen only works on Debian-based distros, and the few that I've found that have been presented as "working on red hat" don't actually work, or their methods of acquisition don't seem viable anymore.
It would be preferable that it supports C++11, or even C++14, as a couple of the guys I'm working on it with haven't ever delved into anything before C++11 and they're "scared of relearning half of what they know."
Everything I've searched for about MinGW or cross-compiling on CentOS has led to a dead end. Am I better off scrapping the installation and installing something debian-based like ubuntu server, or is there a cross-compiler that actually works to compile for windows on redhat distros?
You can use g++ C++ 11. For this you need to install it on your centOS machine. The installation procedure can be found on the following link - Install g++ C++ 11. I have been using this and it works fine.
I have a Windows 7 laptop with an Ubuntu 12.04 installation on the same machine.
I am trying to compile a program from source (VowPal Wabbit). I tried using Cygwin but had no luck getting it to work. I ended up installing Ubuntu 12.04 to get access to get a functioning compiler.
It worked on the Ubuntu side but I am curious if there is a way to bring the compiled files over to Windows as that's where I actually do most of my work. More specifically, will programs compiled in Ubuntu function on a Windows machine?
Any suggestions?
You should check out MinGW:
MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist
development environment for native Microsoft Windows applications.
I realize it is almost a year later. Credit Chris Quirk, Nick Nussbaum and others, current versions of vowpal wabbit (7.x) should build and work fine on Windows.
This reference should provide all the necessary details.
Edit: 2017-07-10:
I should also note: the library and basic train and test from files functionality has been working on Windows for a while. However, not all the functionality supported in a native Linux environment is available on Windows. In particular, the --daemon option, network related features like spanning-tree (under the cluster directory), and some of the utilities under the util directory have not been fully ported and/or tested on Windows. vw developers welcome pull-requests from Windows users.