installing mpich2 always installs me mpich - linux

I have mpif90 for MPICH version 3.0.4, but I want to remove it and install mpich2. There is a problem with the dislin library, so I need mpich2.
While on my debian distro sudo apt-get install mpich2 installs me mpif90 for MPICH2 version 1.4.1 (it is the right one I need), if I run (on Ubuntu where I already have MPICH version 3.0.4) sudo apt-get remove libmpich10 libmpich-dev and then sudo apt-get install mpich2 it still installs mpif90 for MPICH version 3.0.4
How can I do?
UPDATE 1
Thanks. But if I try to install it with dpkg -i mpich2_1.4.1-1ubuntu1_amd64.deb I first have to remove the previous version 3.0.4, because they are in conflict.
I remove it, I try to install the 1.4.1 but there are unsolved dependencies (libmpich2-3 -1.4.1 NOT INSTALLABLE, libcr0 NOT INSTALLED, libhwloc4, hwloc-nox). So as suggested I run apt-get -f install but it installs 3.0.4
On Debian it works fine, 64 bit, wheezy release. On Ubuntu 14.04, 64 bit, it doesn't work.

You are asking how you can downgrade vendor-packaged mpich-3.0.4 to mpich2-1.4.1
Debian and Ubuntu make upgrading really easy. Downgrading is a little tricky and might require pinning a package, rebuilding an old .deb for a newer platform, or you can just build MPICH2-1.4.1 from source.
Debian: https://packages.debian.org/wheezy/mpich2
Ubuntu: http://packages.ubuntu.com/precise/mpich2
Source: http://www.mpich.org/static/downloads/1.4.1/
A word of caution: if you ask anybody for help with MPICH2-1.4, the very first thing you are going to hear is "wow, that is 2 years old. can you try the latest version?"

Related

unable to run mksdcard sdk tool ubuntu 16.04 64bit

I downloded android studio and I tried to install on ubuntu 16.04 64 bit but it has "unable to run mksdcard sdk tool" error.
I checked all solutions but they produce errors too.
Seems that the only package you need is lib32stdc++6 for ubuntu 16.04
sudo apt-get install lib32stdc++6
I just stumbled upon this issue myself.
I guess that you found this topic from 2015?
Well, the given solution is a bit outdated but still pertinent: the 64bit Ubuntu 16.04 is indeed missing the 32bits version of the libraries and the
lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 libraries advised to be installed seems to have been removed from the official repos.
However You can still get them with using this command:
sudo apt-get install libz1:i386 libncurses5:i386 libbz2-1.0:i386 libstdc++6:i386
Then the installer should work just fine
Hope it will be of any help.
take a look at https://developer.android.com/studio/install.html
Select Linux...
Required libraries for 64-bit machines:
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
If you are running 64-bit Fedora, the command is:
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
For Ubuntu 18.04 and above versions, the following will work
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
Ubuntu18.04

How to install R 3.1.2 on Linux Mint 17.1

I have installed the latest version of Linux Mint (17.1) in my computer. I installed R version 3.0.2. However, when I try to install the package xslsx, or dplyr, the system says that these packages are unavailable for the R version I have, and that the shall be installed on the R 3.1.2 version. 've been trying to upgrade R from all the possible means but I haven't had a sucessful result. Is anyone experiencing the same problem?
Follow the instructions posted here: How to upgrade R in ubuntu?
Note that Linux Mint 17.1 relies upon the Ubuntu Trusty package base, so you will need to use trusty/ as the Ubuntu version. Also, make sure to use the command sudo apt-get upgrade r-base at the end of the procedure, not just sudo apt-get upgrade, otherwise R won't be upgraded.
Your question may be considered off-topic, but it can be helpful to other Mint users.
Hope this will help, your question helped me alot... Note that Linux mint is based on ubuntu trusty...
sudo su
echo "deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9}
sudo apt-get upgrade r-base
apt-get update
apt-get upgrade
Version specific installation using source code is much different than the installation using YUM or APT. It depends on OS version and the number of dependencies that need to be met for the installation to complete successfully. I have documented the installation of R 3.3.3 on SLES11 SP3 in http://hashprompt.blogspot.com/2017/06/installation-of-r-on-suse-linux.html Hope that it might help you install on linux systems.
I can't figure out how to install properly from the tar.gz file linked from the main R page. I download it, I run ./configure make, and it installs to my Downloads folder. Couldn't figure out how to install it properly elsewhere (must be easy, but I'm green on these things -- advice appreciated), and RStudio, e.g., doesn't know to look in my Downloads folder for the current version (also probably not the most robust approach).
Instead, I was able to grab the last r-base-dev .deb file from trusty here/xenial here, which handles installation automatically.
R versions 3.5+ have changed directories:
trusty
xenial

Ubuntu is not booting to GUI apt-get: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.15` not found

All of a sudden today my ubuntu system is not booting to GUI, I guess some system problem occured.
When I do:
sudo apt-get upgrade
from a console, I get the following error:
apt-get: /usr/local/lib/libstdc++.so.6: version GLIBCXX_3.4.15 not found (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: version GLIBCXX_3.4.15 not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12)
Can anyone help?
I don't wish to reflash my system.
Its running on 12.04.
You have a local version of your libstdc++, which conflicts with the newer libstdc++-version, which your newer apt-get wants.
I don't know, where is your libstdc++ in your /usr/local/lib is coming from, but it is surely not from your ubuntu distribution. If you don't know that, probably you can delete that.
If you won't do that, a simple hotfix were for this if you renamed /usr/local/lib to f.e. /usr/local/lib- for the running of the apt-get command.

Error in rstudio : libuuid.so.1: cannot open shared object file: No such file or directory

I installed RStudio version 0.98.507 and my R version is 2.14.1. My OS is ubuntu 12.04. When I try to start RStudio from the terminal I get the following error:
rstudio: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory
How do I solve this?
apt-get install libuuid1
This command will not resolve the problem, if you are running 32 bit executable on 64 bit Ubuntu. Need to install 32 bit version of libuuid1 with `i386' suffix.
apt-get install libuuid1:i386
Try
sudo apt-get install libuuid1
Maybe you have some dependencies and, in fact, not completely installed.
When I tried to install, I got the following error:
dpkg: dependency problems prevent configuration of rstudio:
rstudio depends on libjpeg62; however:
Package libjpeg62 is not installed.
So I simply installed the dependency via apt-get:
sudo apt-get install libjpeg62
And then installed the rstudio:
sudo dpkg -i rstudio-<your_version>-amd64.deb
In case someone else comes across this problem, installing libuuid1 also did not work for me. This was because I had installed the 32 bit version of R studio when my system is 64 bit. So one solution is to install the 32 bit versions of the libraries, such as 'libuuid1:i386' in debian. The more simple and obvious solution is to just uninstall the current version of rstudio and install the 64 bit version. Worked like a charm!
installing the following package solved the problem for me. I am using ubuntu 12.04
sudo apt-get install ia32-libs

System crash after oracle installation with yum

recently i tried to install oracle on my linux with apt (I never used yum before) using fast manual:
http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
And after command:
sudo yum install oracle-rdbms-server-11gR2-preinstall
I got error:
Failed: ca-certificates.noarch 0:2010.63-3.el6_1.5 chkconfig.x86_64 0:1.3.49.3-2.el6 file-libs.x86_64 0:5.04-15.el6 filesystem.x86_64 0:2.4.30-3.el6
initscripts.x86_64 0:9.03.38-1.0.1.el6_4.2
Complete!
And something gone wrong because command like: ps, top are crashing
login#Ass-K55VJ:/etc/yum/repos.d$ ps -e
ps: relocation error: ps: symbol procps_number_version, version _3_2_5 not defined in file libproc-3.2.8.so with link time reference
login#Ass-K55VJ:/etc/yum/repos.d$ top
Segmentation fault (core dumped)
then I tryied to uninstall oracle and dependencies but after command:
sudo yum remove oracle-rdbms-server-11gR2-preinstall
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jul 10 2013, 06:42:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
So it seems like yum install in my system new libraries but didn't link it correctly? I dont know what do in this moment because it seems like armagedon on my ubuntu...
Does this mean you're on ubuntu and tried to install rpm packages using yum? The manual you used is for Oracle Linux 6, why would you try that on ubuntu?
rpm packages are not compatible with debian based systems like ubuntu, which use deb packages. So you've probably screwed your system big time, overwriting important system libraries with incompatible ones.
If apt-get is still working, then you can try to reinstall (apt-get --reinstall install) the equivalent libraries to the ones mentioned in the install manual you linked to - naming isn't always the same for rpm and deb packages. dpkg -l should help you see which the correct installed libraries are. I'd start with the C libraries (libc) etc.
But if apt-get is screwed also, then you'd need to download the packages manually from an ubuntu mirror and install them using dpkg, but I think a reinstall (or restore from backup if you have one) would be the best option.

Resources