Please help!!!
I have issue with installing new version of ruby in my Centos6.
I'l try install it using rvm :
/usr/local/rvm/bin/rvm install 1.9.2
And got the next message :
Error running 'requirements_centos_libs_install libyaml-devel
readline-devel libffi-devel sqlite-devel', showing last 15 lines of
/usr/local/rvm/log/1439995406_ruby-1.9.2-p330/package_install_libyaml-devel_readline-devel_libffi-devel_sqlite-devel.log
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.
You have duplicate versions of libffi installed already.
You can use "yum check" to get yum show these errors.
...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).
Protected multilib versions: libffi-3.0.5-3.2.el6.i686 != libffi-3.0.9-1.el5.rf.x86_64
++ return 1
++ return 1 Requirements installation failed with status: 1.
I try to remove this lib but again fail :
Error: Trying to remove "yum", which is protected
Can somebody explain where I fail? Please! Thx all!
p.s. I'm update the system (in case if answer will be "yum update") :)
Try to remove lib :
rpm -e --nodeps libffi
and again try to install ruby.
Related
I have been trying to install obspy and have been running into a lot of problems. I want to install obspy which has a dependency on pyproj. But apparently obspy only works with pyproj 1.9.5.1, which I tried installing using pip (pip3 install pyproj==1.9.5.1), but only got the errors like-
_proj.c:7488:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
Digging deeper I found that it might be a Cython problem, and installing pyproj directly from github might help, because it would apparently make Cython recompile all the necessary files. Something along the lines of -
pip3 install git+https://github.com/jswhit/pyproj.git
However this one gives the error -
ERROR: Minimum supported proj version is 6.2.0, installed version is 5.2.0.
I di try installing a higher version of libproj-dev (sudo apt install libproj-dev=6.2.0) however it shows that there is no candidate for 6.2.0. I tried downloading the deb file and installing from that using -
sudo apt-get install ~/Downloads/libproj-dev_6.2.0-1_amd64.deb
which just leads to the error -
The following packages have unmet dependencies:
libproj-dev : Depends: libproj15 (= 6.2.0-1) but it is not installable
E: Unable to correct problems, you have held broken packages.
But I think this is not the right way to install for me anyway, since I need a specific version. Hence I tried installing directly from the tarball of the release -
pip3 install https://github.com/pyproj4/pyproj/archive/v1.9.5.1rel.tar.gz
Which leads to the first error I had, evidently due to Cython.
With errors on everything I tried to do to fix this, I am not sure what even is relevant to my problem now.
Any help is appreciated, and if this site is not the correct place for this question, please help me migrate it to its proper destination.
I am on Ubuntu 18.10.
The problem is, that Cython-generated c-files don't work for Python-3.7 if generated with Cython versions up to 0.27.3 (at least): The setup.py of pyproj (at least in the version 1.9.5.1) doesn't regenerate the_proj.c, which is generated with Cython 0.23.2 and thus the installation cannot succeed.
You have the following options:
stay on Python3.6 where everything works out of the box.
regenerate _proj.c with a current Cython-version.
For the second option:
download and unzip your prefered version from https://github.com/pyproj4/pyproj/releases/tag/v1.9.5.1rel and switch to the created folder pyproj-1.9.5.1rel.
check, that the cython-version is >=0.27.3. via cython --version.
regenerate the _proj.c file via cython -3 _proj.pyx (_proj.pyx looks like Python3-code, but also language_level=2 (i.e. cython -2 _proj.pyx) will probably work.
install running pip install .
pyproj 1.9.5.1 was release at Jan 7, 2016. At that time, the latest version Python was 3.5. In my tests. pyproj 1.9.5.1 failed to be installed on Python 3.7.4, but succeeded on Python 3.5.7.
You need to create a environment with Python 3.5 by pyenv or conda.
References
pyproj 1.9.5.1 release
Python release history
I tried to use gotk3 for creating desktop application. I follow the instruction in gotk3 wiki and this installing-on-linux wiki to install it. But then I get this error while executing go get -v:
gcc errors for preamble:
In file included from ../../gotk3/gotk3/gdk/gdk_since_3_22.go:23:0:
./gdk_since_3_22.go.h:22:8: error: unknown type name 'GdkMonitor'
static GdkMonitor *
^
I've tried to delete the gotk3 directory, and then trying to go get -v again, but still, it didn't work.
I also checked the GTK version that installed in my Ubuntu 16.04 using apt-cache policy libgtk2.0-0 libgtk-3-0 | grep Installed. And it shows this:
Installed: 2.24.30-1ubuntu1.16.04.2
Installed: 3.18.9-1ubuntu3.3
What did I do wrong? Thanks
GdkMonitor was introduced in GTK+ 3.22. Your version is 3.18.
go get -tags gtk_3_18 github.com/gotk3/gotk3/gtk at the very beginning of building (see here NOTE section) should fix things
I'm getting the following error while trying to install Ruby 2.0.0 with RVM (Linux Mint 17)
A previous answer here recommends that I "Remove broken or 404 repos from my sources list /etc/apt/sources.list"
The problem is that on Linux Mint 17, my sources list has only one line #deb cdrom:[Linux Mint 17 _Qiana_ - Release amd64 2xxxxxxx]/ trusty contrib main non-free.
Therefore,the three broken 404 repos:
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/source/Sources 404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 not found
are not in this sources.list file
Can you help me on this?
$ rvm install ruby 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: mint/17/x86_64/ruby-2.0.0-p481.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for mint.
Installing requirements for mint.
Updating system................
Error running 'requirements_debian_update_system ruby-2.0.0-p481',
showing last 15 lines of /home/james/.rvm/log/1xxxxxxxxx_ruby-2.0.0-p481/update_system.log
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'There has been error while updating '\''apt-get'\'', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
++ return 100
Requirements installation failed with status: 100.
As it says in the answer I linked to in my question,
RVM will fail if you don't remove or comment out any broken or 404 Repos from your sources list /etc/apt/sources.list
The problem is that for some reason, you cant get direct access to all the repos on LinuxMint 17... unlike Ubuntu.
I ran sudo apt-get update:
This will show you the broken packages at the end... For me, this was:
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/source/Sources
404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages
404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-i386/Packages
404 not found
Since I cant just comment it out because I don't have access to the full source.list (or I cant find it), I found out that in Linux Mint 17, you can use the GUI.
So I went to Menu >> Software >> Software Sources >> PPA to un-tick the broken Launchpad Repos.
After doing this, I ran rvm install 2.0.0 again and everything worked as expected.
The new standard sources.list moved to
/etc/apt/sources.list.d/official-package-repositories.list
And before modifications of it try to run
sudo apt-get update
Try to install gcc47 on osx 10.6.8 but got the following error:
sudo port install gcc47
---> Computing dependencies for gcc47
Error: Dependency 'ld64' not found.
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Did I miss anything?
I think it's still there at /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64 However, the Portfile seems so buggy that port index can't parse it. I installed llvm-3.0 first and then edited the Portfile, commenting out the following lines
#if {![variant_isset llvm29] && ![variant_isset llvm30] && ![variant_isset llvm31]} {
# default_variants +llvm30
#}
#set llvm_version {}
#variant llvm29 conflicts llvm30 llvm31 description {Use llvm-2.9 for libLTO} {
# set llvm_version 2.9
# depends_lib-append port:llvm-${llvm_version}
#}
#variant llvm30 conflicts llvm29 llvm31 description {Use llvm-3.0 for libLTO} {
set llvm_version 3.0
# depends_lib-append port:llvm-${llvm_version}
#}
#variant llvm31 conflicts llvm29 llvm30 description {Use llvm-3.1 for libLTO} {
# set llvm_version 3.1
# depends_lib-append port:llvm-${llvm_version}
#}
After this, running "sudo portindex" cleared the issue. Finally I was able to install ld64 and gcc47.
The following commands solved my problem. Since the error was only for ld64 and cctools ports in my case.
sudo port clean ld64 cctools
sudo port install gcc47
The ld64 package has been pulled from macports as of today:
http://www.macports.org/ports.php?by=name&substr=ld64
It was still available yesterday though.
However, the package did not build correctly when I tried it yesterday because of build errors with llvm-3.0.
The ld64 package is back on the index but it fails to build :-(
First there is a xcodebuild issue with the license agreement. I fixed it with the tip from 1. But now there's a build failure because of an undeclared identifier.
Run the following command; seems working for now.
sudo port selfupdate
sudo port install gcc47
I do not know how you get this problem. I am also encountering this problem after I upgrade my system to Mavericks. After check the main.log file, I found that the error is because the build cannot find . Then, I install the newest version Xcode Command Line Tools , it works! Hope my experience is helpful to you.
This has been driving me crazy for 2 days.
I have been trying to install psycopg2 using easy_install and no matter what I try (i.e using gcc-4.0 instead of the snow leopard default one) I always get the same error:
error: Setup script exited with error: command '/usr/bin/gcc-4.0' failed with exit status 1
Please see: http://dpaste.com/hold/228252/
I have googled that error so many times and nothing I have found seem to help.
Looks like you're missing a dependency, the development files for libpq. The relevant log part is here:
In file included from psycopg/psycopgmodule.c:32In file included from psycopg/psycopgmodule.c:32:
./psycopg/psycopg.h:31:22: error: libpq-fe.h: No such file or directory
Try installing libpq development files and then rerun easy_install. You may hit another missing dependency; pay attention to the first error that GCC spits out.
Link http://dpaste.com/hold/228252/ seems to be dead, this is how I solved this problem (Mac OS X 10.6, virtualenv).
If pip fails with this message, just take a look to build folder in your virtual environment. You should edit setup.cfg file there, particularly include_dirs and library_dirs. In first one set your include folders, my option was:
include_dirs=/opt/local/include/postgresql84:/opt/local/include/postgresql84/server
and most likely you will need to set library_dirs to correct location as well:
library_dirs=/opt/local/lib/postgresql84.
probably you should install postgresql-devel first
yum -y install postgresql-devel