Homebrew says Download failed when trying to install libksba - rvm

In rvm requirements, I have libksba. So I try to install it with homebrew:
➜ ~ brew install libksba
==> Downloading ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.0.tar.bz2
curl: (56) Recv failure: Operation timed out
Error: Download failed: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.0.tar.bz2
Is there a way to fix this (by specifying additional repositories) ? Or should I install the lib manually ?

You can
rvm autolibs enable and then
rvm do what you want (in my case: rvm install 1.9.3)

Related

Buildozer error while compiling apk - pip ssl

I am trying to compile a simple program into an apk for Android with Buildozer but have run into the following problem. Can you please help? I tried upgrading pip but that didn't help:python3 -m pip install --upgrade pip
So, I reverted back to the original pip version.
Installed Cython separately: pip3 install Cython
But the same issue persists. I am at a loss. :-(
Command: buildozer android debug
RAN: /bin/bash -c 'venv/bin/pip install Cython'
STDOUT:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
How can I fix this?
Could not fetch URL https://pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
ERROR: No matching distribution found for Cython
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
This is a recent bug, you need to install libssl-dev using apt install libssl-dev
Then you might also want to clean your buildozer directory by running rm -rf .buildozer in the directory that contains your buildozer.spec file.
That should do it!

rbenv install 2.6.3 BUILD FAILED

I want to use rbenv for first time, install it and initialize it, after using rbenv install 2.6.3 (this version is in my list. rbenv install --list) I have BUILD FAILED (error about clang3.0 and gcc-4.0) how can I fix it? thank you.
I tried brew update and upgrade and git clone on my rbenv list for 2.6.3 and it is ok, and with gcc --version I get:
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
rbenv install 2.6.3
ruby-build: using openssl from homebrew
Downloading ruby-2.6.3.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.bz2
Installing ruby-2.6.3...
ruby-build: using readline from homebrew
BUILD FAILED (OS X 10.13.2 using ruby-build 20190615-7-g0e9094b)
Inspect or clean up the working tree at /var/folders/r2/1kkj8jmd5cz_hcl22vs96pzm0000gn/T/ruby-build.20190720165009.5566
Results logged to /var/folders/r2/1kkj8jmd5cz_hcl22vs96pzm0000gn/T/ruby-build.20190720165009.5566.log
Last 10 log lines:
/var/folders/r2/1kkj8jmd5cz_hcl22vs96pzm0000gn/T/ruby-build.20190720165009.5566/ruby-2.6.3 /var/folders/r2/1kkj8jmd5cz_hcl22vs96pzm0000gn/T/ruby-build.20190720165009.5566 ~
checking for ruby... /usr/local/bin/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... x86_64-apple-darwin17.3.0
checking host system type... x86_64-apple-darwin17.3.0
checking target system type... x86_64-apple-darwin17.3.0
./configure: line 3491: /usr/bin/gcc-4.0: No such file or directory
configure: error: clang version 3.0 or later is required
make: *** No targets specified and no makefile found. Stop.
Fix: RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.6.3

Cannot install rbenv via homebrew (SSL Handshake)

Just re-installed Yosemite and I cannot install rbenv via homebrew
~ brew install rbenv ruby-build
==> Downloading https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz
######################################################################## 100.0%
curl: (35) Server aborted the SSL handshake
Error: Failed to download resource "rbenv"
Download failed: https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz
Thoughts?

Homebrew Install error

I'm trying to install redis with Homebrew. I'm getting the error below:
brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.6.14.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.6.14.tar.gz
==> make -C /private/tmp/redis-1Tw6/redis-2.6.14/src CC=cc
Failed to execute: make
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
I've run brew doctor and brew update without any issue. XCode CLT is also up to date. Any ideas?

Permission denied when installing RVM

I'm trying to install rvm. I typed:
curl -L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
And I got the below
Updated:
It's working now. My Xcode was not updated.
But now second problem, also permission denied are the packages. It says it can't be installed. Log is shown below,
[2013-05-18 15:37:46] requirements_osx_port_libs_install
---> Computing dependencies for apple-gcc42
---> Dependencies to be installed: cctools ld64 llvm-3.2 gcc_select
---> Building llvm-3.2
Error: org.macports.build for port llvm-3.2 returned: command execution failed
Error: Failed to install llvm-3.2
Please see the log file for port llvm-3.2 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.2/llvm-3.2/main.log
Error: The following dependencies were not installed: cctools ld64 llvm-3.2 gcc_select
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port apple-gcc42 failed
There were package installation errors, make sure to read the log.
How do I solve this?
Your /usr/local dir is locked to (probably) root. To solve this run this line:
sudo chown -R `whoami` /usr/local
It will make it writable for you. That can be an issue but usually it should be not.