I want to develop and run a ruby on rails web app on my Bootcamp windows Mac laptop.
I am using rubyinstaller and railsinstaller, but the installation breaks always at some PGP key check which I have no idea about.
Facing issue while trying to install ruby installer
_____ _ _____ _ _ _ ___
| __ \ | | |_ _| | | | | | |__ \
| |__) | _| |__ _ _ | | _ __ ___| |_ __ _| | | ___ _ __ ) |
| _ / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | | __/ | / /_
|_| \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
__/ | _
|___/ _|_ _ __ | | o __ _| _ _
| (_) | |^| | | |(_|(_)\^/_>
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER [1,3] 1
> sh -lc true
'C:\Windows\system32\drivers\etc\hosts' -> '/etc/hosts'
'C:\Windows\system32\drivers\etc\protocol' -> '/etc/protocols'
'C:\Windows\system32\drivers\etc\services' -> '/etc/services'
'C:\Windows\system32\drivers\etc\networks' -> '/etc/networks'
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key XXXXXXXXXXXXXXXXXX marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from msys2.gpg...
==> Locally signing trusted keys in keyring...
-> Locally signing key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
-> Locally signing key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
-> Locally signing key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
-> Locally signing key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 4 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 4 signed: 3 trust: 0-, 0q, 0n, 4m, 0f, 0u
gpg: depth: 2 valid: 3 signed: 0 trust: 3-, 0q, 0n, 0m, 0f, 0u
gpg: refreshing 8 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: General error
==> ERROR: A specified local key could not be updated from a keyserver.
--> Installing /usr/share/info/assuan.info.gz ... done
--> Installing /usr/share/info/autoconf.info.gz ... done
--> Installing /usr/share/info/autoconf2.13.info.gz ... done
--> Installing /usr/share/info/autogen.info.gz ... done
--> Installing /usr/share/info/automake1.10.info.gz ... done
--> Installing /usr/share/info/automake1.11.info.gz ... done
--> Installing /usr/share/info/automake1.12.info.gz ... done
--> Installing /usr/share/info/automake1.13.info.gz ... done
--> Installing /usr/share/info/automake1.14.info.gz ... done
--> Installing /usr/share/info/automake1.15.info.gz ... done
--> Installing /usr/share/info/automake1.16.info.gz ... done
--> Installing /usr/share/info/automake1.6.info.gz ... done
--> Installing /usr/share/info/automake1.7.info.gz ... done
--> Installing /usr/share/info/automake1.8.info.gz ... done
--> Installing /usr/share/info/automake1.9.info.gz ... done
--> Installing /usr/share/info/automake-history1.12.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.12.info.gz'
done
--> Installing /usr/share/info/automake-history1.13.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.13.info.gz'
done
--> Installing /usr/share/info/automake-history1.14.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.14.info.gz'
done
--> Installing /usr/share/info/automake-history1.15.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.15.info.gz'
done
--> Installing /usr/share/info/automake-history1.16.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.16.info.gz'
done
--> Installing /usr/share/info/autosprintf.info.gz ... done
--> Installing /usr/share/info/bash.info.gz ... done
--> Installing /usr/share/info/coreutils.info.gz ... done
--> Installing /usr/share/info/diffutils.info.gz ... done
--> Installing /usr/share/info/find.info.gz ... done
--> Installing /usr/share/info/find-maint.info.gz ... done
--> Installing /usr/share/info/flex.info.gz ... done
--> Installing /usr/share/info/gawk.info.gz ... done
--> Installing /usr/share/info/gawkinet.info.gz ... done
--> Installing /usr/share/info/gawkworkflow.info.gz ... done
--> Installing /usr/share/info/gcrypt.info.gz ... done
--> Installing /usr/share/info/gdbm.info.gz ... done
--> Installing /usr/share/info/gettext.info.gz ... done
--> Installing /usr/share/info/gmp.info.gz ... done
--> Installing /usr/share/info/gnupg.info.gz ... done
--> Installing /usr/share/info/gnutls.info.gz ... done
--> Installing /usr/share/info/gnutls-guile.info.gz ... done
--> Installing /usr/share/info/gpgme.info.gz ... done
--> Installing /usr/share/info/grep.info.gz ... done
--> Installing /usr/share/info/gzip.info.gz ... done
--> Installing /usr/share/info/history.info.gz ... done
--> Installing /usr/share/info/inetutils.info.gz ... done
--> Installing /usr/share/info/info-stnd.info.gz ... done
--> Installing /usr/share/info/ksba.info.gz ... done
--> Installing /usr/share/info/libffi.info.gz ... done
--> Installing /usr/share/info/libgomp.info.gz ... done
--> Installing /usr/share/info/libidn2.info.gz ... done
--> Installing /usr/share/info/libquadmath.info.gz ... done
--> Installing /usr/share/info/libtasn1.info.gz ... done
--> Installing /usr/share/info/libtool.info.gz ... done
--> Installing /usr/share/info/libunistring.info.gz ... done
--> Installing /usr/share/info/m4.info.gz ... done
--> Installing /usr/share/info/make.info.gz ... done
--> Installing /usr/share/info/mpfr.info.gz ... done
--> Installing /usr/share/info/nettle.info.gz ... done
--> Installing /usr/share/info/pinentry.info.gz ... done
--> Installing /usr/share/info/readline.info.gz ... done
--> Installing /usr/share/info/rluserman.info.gz ... done
--> Installing /usr/share/info/sed.info.gz ... done
--> Installing /usr/share/info/tar.info.gz ... done
--> Installing /usr/share/info/texinfo.info.gz ... done
--> Installing /usr/share/info/time.info.gz ... done
--> Installing /usr/share/info/wget.info.gz ... done
--> Installing /usr/share/info/which.info.gz ... done
###################################################################
# #
# #
# C A U T I O N #
# #
# This is first start of MSYS2. #
# You MUST restart shell to apply necessary actions. #
# #
# #
###################################################################
MSYS2 seems to be properly installed
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER [] 2
> sh -lc true
MSYS2 seems to be properly installed
Remove catgets to avoid conflicts while update ...
> pacman -Rdd catgets libcatgets --noconfirm
error: target not found: catgets
error: target not found: libcatgets
MSYS2 system update (optional) part 1 ...
> pacman -Syu --needed --noconfirm
:: Synchronizing package databases...
mingw32 549.5 KiB 6.79 MiB/s 00:00 [#######################################] 100%
mingw32.sig 438.0 B 428 KiB/s 00:00 [#######################################] 100%
error: mingw32: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
:: Import PGP key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX? [Y/n]
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: failed to update mingw32 (invalid or corrupted database (PGP signature))
mingw64 551.3 KiB 6.41 MiB/s 00:00 [#######################################] 100%
mingw64.sig 438.0 B 0.00 B/s 00:00 [#######################################] 100%
error: mingw64: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
:: Import PGP key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX? [Y/n]
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: failed to update mingw64 (invalid or corrupted database (PGP signature))
msys 229.7 KiB 5.47 MiB/s 00:00 [#######################################] 100%
msys.sig 438.0 B 0.00 B/s 00:00 [#######################################] 100%
error: msys: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
:: Import PGP key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX? [Y/n]
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: failed to update msys (invalid or corrupted database (PGP signature))
error: failed to synchronize all databases
MSYS2 system update (optional) failed
Installation failed: pacman failed
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER [] 3
> sh -lc true
MSYS2 seems to be properly installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autoconf2.13 autogen automake-wrapper automake1.10 automake1.11 automake1.12 automake1.13 automake1.14 automake1.15 automake1.6 automake1.7 automake1.8 automake1.9 diffutils file gawk grep libtool m4 make patch pkg-config sed texinfo texinfo-tex wget mingw-w64-x86_64-binutils mingw-w64-x86_64-crt-git mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-headers-git mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-libwinpthread-git mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-tools-git mingw-w64-x86_64-winpthreads-git
error: mingw32: key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
:: Import PGP key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX? [Y/n]
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: mingw64: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
:: Import PGP key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX? [Y/n]
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: msys: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
:: Import PGP key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX? [Y/n]
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: database 'mingw32' is not valid (invalid or corrupted database (PGP signature))
error: database 'mingw64' is not valid (invalid or corrupted database (PGP signature))
error: database 'msys' is not valid (invalid or corrupted database (PGP signature))
Install MSYS2 and MINGW development toolchain failed
Installation failed: pacman failed
Further following issue when running "rails new appname"
Fetching sqlite3 1.4.2
Installing sqlite3 1.4.2 with native extensions
error: mingw32: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: mingw64: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: msys: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is unknown
error: key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" could not be looked up remotely
error: database 'mingw32' is not valid (invalid or corrupted database (PGP signature))
error: database 'mingw64' is not valid (invalid or corrupted database (PGP signature))
error: database 'msys' is not valid (invalid or corrupted database (PGP signature))
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2/ext/sqlite3
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0 -r
./siteconf20200909-13048-140wmk3.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby26-x64/bin/$(RUBY_BASE_NAME)
--with-sqlcipher
--without-sqlcipher
--with-sqlite3-config
--without-sqlite3-config
--with-pkg-config
--without-pkg-config
--with-sqlcipher
--without-sqlcipher
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2 for inspection.
Results logged to
C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/gem_make.out
An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/'`
succeeds before bundling.
In Gemfile:
sqlite3
run bundle binstubs bundler
Could not find gem 'sqlite3 (~> 1.4) x64-mingw32' in any of the gem sources
listed in your Gemfile.
rails webpacker:install
Could not find gem 'sqlite3 (~> 1.4) x64-mingw32' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
In my case (on Windows 10) running command shell as administrator and then ridk install worked fine.
1st for RIDK, just run 1,3 enter when instalation
2nd for SQLite3 issue, follow the following link solution of reducing sqlite version in gem file and running "bundle install"
Rails error on windows 10 (An error occurred while installing sqlite3 (1.4.1), and Bundler cannot continue)
Related
So, I need to install OUnit2 and I'm on a 2015 MacBook Pro running MacOS Monterey 12.6. I have homebrew, I have Ocaml, I have opam. Dune is one of Ounit2's dependencies, so obviously I need it to have OUnit2. However, this is what I get:
$ opam install ounit
The following actions will be performed:
∗ install dune 3.6.1 [required by ounit2]
∗ install stdlib-shims 0.3.0 [required by ounit2]
∗ install ounit2 2.2.6 [required by ounit]
∗ install ounit 2.2.6
===== ∗ 4 =====
Do you want to continue? [Y/n] y
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
⬇ retrieved ounit.2.2.6 (cached)
⬇ retrieved ounit2.2.2.6 (cached)
⬇ retrieved stdlib-shims.0.3.0 (cached)
⬇ retrieved dune.3.6.1 (cached)
[ERROR] The compilation of dune.3.6.1 failed at "ocaml boot/bootstrap.ml -j 3".
#=== ERROR while compiling dune.3.6.1 =========================================#
# context 2.1.4 | macos/x86_64 | ocaml-base-compiler.4.13.0 | https://opam.ocaml.org#a9fb5a37
# path ~/.opam/4.13.0/.opam-switch/build/dune.3.6.1
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml boot/bootstrap.ml -j 3
# exit-code 2
# env-file ~/.opam/log/dune-6080-3de25d.env
# output-file ~/.opam/log/dune-6080-3de25d.out
### output ###
# [...]
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
# In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
# /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h:796:20: error: use of undeclared identifier 'uuid_string_t'
# char reserved[JIB_RESERVED_SIZE];
# ^
# /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h:787:61: note: expanded from macro 'JIB_RESERVED_SIZE'
# #define JIB_RESERVED_SIZE ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
# ^
# 2 errors generated.
#
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
┌─ The following actions failed
│ λ build dune 3.6.1
└─
╶─ No changes have been performed
So far, I've tried updating my MacOS (I tried this on Mojave 11.4, same error, then upgraded to Monterey) and reinstalling my xcode Command Line Tools. Why isn't this working?
Stupid problems call for stupid solutions.
Adding typedef __darwin_uuid_string_t uuid_string_t; to line 777 of /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/hfs/hfs_format.h magically made it work.
I am trying to install anchor-cli in mac os. I followed this guide to install anchor-cli. But I am getting the following error while executing the cargo install --git https://github.com/project-serum/anchor --tag v0.24.2 anchor-cli --locked command
Compiling anchor-cli v0.24.2 (/Users/selvam/.cargo/git/checkouts/anchor-bf03d42499b9267c/0b4c7b0/cli)
error: there is no argument named `rpc_port`
--> cli/src/lib.rs:2211:40
|
2211 | "Your configured rpc port: {rpc_port} is already in use"
| ^^^^^^^^^^
error: there is no argument named `faucet_port`
--> cli/src/lib.rs:2221:43
|
2221 | "Your configured faucet port: {faucet_port} is already in use"
| ^^^^^^^^^^^^^
error: could not compile `anchor-cli` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `anchor-cli v0.24.2 (https://github.com/project-serum/anchor?tag=v0.24.2#0b4c7b0c)`, intermediate artifacts can be found at `/var/folders/pr/mfnrnlh92974pfszrqmj3l940000gp/T/cargo-installAhWbj9`
solana --version
solana-cli 1.9.0 (src:7782d34b; feat:378846963)
rustup --version
rustup 1.23.1 (3df2264a9 2020-11-30)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.56.1 (59eed8a2a 2021-11-01)
I think your rust version is outdated.
Try again after upgrading rust version.
I'm trying to install slacker so I can do some SQL testing. I've never used Ruby before. I'm on Windows. My dev box only has access to the Internet via a proxy and I have to nominate all URls in advance.
I I downloaded and ran rubyinstaller-devkit-2.7.5-1-x64.exe (because it requires Ruby 2.4/2.5+ and 2.7.X was recommended at the Ruby site) accepting all of the defaults.
When it got to MSYS2 I hit ENTER (MSYS2 base installation and MINGW development toolchain).
I got errors in the gpg section, e.g. (but not limited to)
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 6 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 6 signed: 6 trust: 0-, 0q, 0n, 6m, 0f, 0u
gpg: depth: 2 valid: 6 signed: 0 trust: 6-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2022-03-03
gpg: error retrieving 'alexey.pawlow#gmail.com' via WKD: No name
gpg: error reading key: No name
gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: keyserver refresh failed: No name
==> ERROR: Could not update key: F40D263ECA25678A
Later, it said
MSYS2 seems to be properly installed
I then got a whole bunch of warnings about things being up to date -- skipping.
Then, it said
Install MSYS2 and MINGW development toolchain succeeded
and the MSYS2 window went back to the installation menu, so I closed the window.
Then, as per the instructions on the slacker site, I tried:
gem install slacker
I got:
ERROR: Could not find a valid gem 'slacker' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/specs.4.8.gz)
I figured this was a proxy server issue and read around and discovered that if I downloaded the gems to a local folder, I could run the command from that folder and it should work. So, I downloaded slacker-1.0.24.gem from https://rubygems.org/gems/, unblocked the file and tried the command from that folder. I got a similar error to above for tiny_tds. I repeated the process until I appeared to have all required gems:
bundler-1.17.3.gem
diff-lcs-1.5.0.gem
rspec-3.10.0.gem
rspec-core-3.10.1.gem
rspec-expectations-3.10.1.gem
rspec-mocks-3.10.2.gem
rspec-support-3.10.3.gem
ruby-odbc-0.99999.gem
slacker-1.0.24.gem
tiny_tds-2.1.5.gem
Finally, it looked like it was working for a few seconds and then I got a whole new bunch of errors. Here are the first few - I can post the lot if it will help:
Temporarily enhancing PATH for MSYS/MINGW...
Installing required msys2 packages: mingw-w64-x86_64-freetds
error: failed retrieving file 'mingw-w64-x86_64-openssl-1.1.1.l-1-any.pkg.tar.zst' from mirror.msys2.org : Could not resolve host: mirror.msys2.org
warning: too many errors from mirror.msys2.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-x86_64-freetds-1.2.6-2-any.pkg.tar.zst' from mirror.msys2.org : Could not resolve host: mirror.msys2.org
error: failed retrieving file 'mingw-w64-x86_64-p11-kit-0.24.0-1-any.pkg.tar.zst' from mirror.msys2.org : Could not resolve host: mirror.msys2.org
error: failed retrieving file 'mingw-w64-x86_64-ca-certificates-20210119-1-any.pkg.tar.zst' from mirror.msys2.org : Could not resolve host: mirror.msys2.org
then after those, this:
warning: failed to retrieve some files
error: failed to commit transaction (invalid url for server)
pacman failed with the following output:
resolving dependencies...
looking for conflicting packages...
Packages (6) mingw-w64-x86_64-ca-certificates-20210119-1 mingw-w64-x86_64-libffi-3.3-4 mingw-w64-x86_64-libtasn1-4.18.0-1 mingw-w64-x86_64-openssl-1.1.1.l-1 mingw-w64-x86_64-p11-kit-0.24.0-1 mingw-w64-x86_64-freetds-1.2.6-2
Total Download Size: 6.24 MiB
Total Installed Size: 77.14 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
mingw-w64-x86_64-openssl-1.1.1.l-1-any downloading...
mingw-w64-x86_64-freetds-1.2.6-2-any downloading...
mingw-w64-x86_64-p11-kit-0.24.0-1-any downloading...
mingw-w64-x86_64-ca-certificates-20210119-1-any downloading...
mingw-w64-x86_64-libtasn1-4.18.0-1-any downloading...
Errors occurred, no packages were upgraded.
Building native extensions. This could take a while...
ERROR: Error installing slacker:
ERROR: Failed to build gem native extension.
And more. There was also a reference to a log file which contained sections like this:
find_header: checking for sybfront.h... -------------------- no
"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -I/opt/local/include -I/opt/local/include/freetds -I/usr/local/include -I/usr/local/include/freetds -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-fast-math -fstack-protector-strong conftest.c -L. -LC:/Ruby27-x64/lib -L/opt/local/lib -L/opt/local/lib/freetds -L/usr/local/lib -L/usr/local/lib/freetds -L. -pipe -s -fstack-protector-strong -m64 -lx64-msvcrt-ruby270 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return !!argv[argc];
8: }
/* end */
To my questions:
Is there any way to resolve this without getting the URLs added to the proxy list? It's basically at least a week per change because of the hoops we have to jump through.
If I need to get the URLs added to the proxy list, is there a master list or URLs so I can do it once and be sure it will work? I've tried Googling it but I just end up with help getting Ruby code to use proxys not the installer.
I have answered question 1 myself. If anyone else can give me a definitive answer to part two, I will happily mark that as the answer.
I guessed that I needed to download and install the mingw packages that couldn't be downloaded somewhere. I did a bit of trawling and found this article (Offline installation of packages)which gave me the pointers I needed. I got these four files from https://repo.msys2.org/mingw/mingw64/:
mingw-w64-x86_64-freetds-1.2.6-2-any.pkg.tar.zst
mingw-w64-x86_64-libtasn1-4.18.0-1-any.pkg.tar.zst
mingw-w64-x86_64-openssl-1.1.1.l-1-any.pkg.tar.zst
mingw-w64-x86_64-p11-kit-0.24.0-1-any.pkg.tar.zst
And mingw-w64-x86_64-ca-certificates-20210119-1-any.pkg.tar.zst from https://ftp.acc.umu.se/mirror/msys2.org/mingw/mingw64/.
I copied them to: C:\Ruby27-x64\msys64\home\myUserId\freetds which is in my home dir in msys. (From errors I got the first time, it looks like the folder name has to match the database name.) Then I started msys by running: C:\Ruby27-x64\msys64\msys2.exe.
In msys, I ran:
cd freetds/
then, to create a repository database just for freetds:
$ repo-add freetds.db.tar.gz *.pkg.tar.zst
I got a bunch of messages telling me it was ==> Adding package 'ming...
I needed to edit the pacman.conf file to point to my temp database, so I made a copy of the pacman.conf file:
cp /etc/pacman.conf /etc/pacman.conf.old
I edited pacman.conf in Notepad++, changing SigLevel to = Never, commenting out the other repositories, and adding this to the end:
[freetds]
Server = file:///home/myUserId/freetds
Then, I made pacman synchronise with the database I created:
pacman -Sy
:: Synchronizing package databases...
freetds 1676.0 B 7.54 KiB/s 00:00 [#####################] 100%
I tried gem install slacker again but there was another missing package "mingw-w64-x86_64-libffi, so I downloaded mingw-w64-x86_64-libffi-3.3-4-any.pkg.tar.zst and put it in the same place, re-ran the repo-add command and pacman Sy and then gem install slacker.
This worked and I got 10 gems installed. I've run the test project documented in the slacker GitHub pages and it worked.
I wanted to install the ocaml-compiler as well as required packages.
I've already successfully ran those lines:
$ sh <(curl -sL \
https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
$ opam init --bare
$ opam switch create 4.13.1
$ eval $(opam env)
And then I gave this command line:
opam install ocaml-lsp-server dune utop mparser \
ocamlformat ounit2 qcheck
And I became this error report:
[ERROR] The compilation of cmdliner.1.0.4 failed at "make all
PREFIX=/Users/jasmin/.opam/4.13.1".
⬇ retrieved mew_vi.0.5.0 (cached)
⬇ retrieved lwt_react.1.1.4 (cached)
⬇ retrieved odoc-parser.0.9.0 (cached)
⬇ retrieved react.1.2.1 (cached)
⬇ retrieved ocp-indent.1.8.1 (cached)
⬇ retrieved utop.2.8.0 (cached)
⬇ retrieved topkg.1.0.4 (cached)
⬇ retrieved uutf.1.0.2 (cached)
⬇ retrieved uuseg.14.0.0 (cached)
⬇ retrieved zed.3.1.0 (cached)
⬇ retrieved uucp.14.0.0 (cached)
[ERROR] The compilation of topkg.1.0.4 failed at "ocaml pkg/pkg.ml build
--pkg-name topkg --dev-pkg false".
#=== ERROR while compiling topkg.1.0.4 ========================================#
# context 2.1.0 | macos/x86_64 | ocaml-base-compiler.4.13.1 | git+https://github.com/ocaml/opam-repository.git
# path ~/.opam/4.13.1/.opam-switch/build/topkg.1.0.4
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pkg-name topkg --dev-pkg false
# exit-code 1
# env-file ~/.opam/log/topkg-2340-8c41a0.env
# output-file ~/.opam/log/topkg-2340-8c41a0.out
### output ###
# [...]
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'CHANGES.md' 'LICENSE.md' 'README.md' 'pkg/META'
# 'topkg.opam' 'src/topkg.a' 'src/topkg.cmxs' 'src/topkg.cmxa'
# 'src/topkg.cma' 'src/topkg_vcs.cmx' 'src/topkg_test.cmx'
# 'src/topkg_string.cmx' 'src/topkg_result.cmx' 'src/topkg_publish.cmx'
# 'src/topkg_pkg.cmx' 'src/topkg_os.cmx' 'src/topkg_opam.cmx'
# 'src/topkg_main.cmx' 'src/topkg_log.cmx' 'src/topkg_ipc.cmx'
# 'src/topkg_install.cmx' 'src/topkg_fpath.cmx' 'src/topkg_fexts.cmx'
# 'src/topkg_distrib.cmx' 'src/topkg_conf.cmx' 'src/topkg_codec.cmx'
# 'src/topkg_cmd.cmx' 'src/topkg_build.cmx' 'src/topkg.cmx'
# 'src/topkg.cmi' 'src/topkg.mli']: exited with 10
#=== ERROR while compiling cmdliner.1.0.4 =====================================#
# context 2.1.0 | macos/x86_64 | ocaml-base-compiler.4.13.1 | git+https://github.com/ocaml/opam-repository.git
# path ~/.opam/4.13.1/.opam-switch/build/cmdliner.1.0.4
# command ~/.opam/opam-init/hooks/sandbox.sh build make all PREFIX=/Users/jasmin/.opam/4.13.1
# exit-code 1
# env-file ~/.opam/log/cmdliner-2340-7f9fe6.env
# output-file ~/.opam/log/cmdliner-2340-7f9fe6.out
### output ###
# xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
┌─ The following actions failed
│ λ build cmdliner 1.0.4
│ λ build topkg 1.0.4
My MacOS is already updated to the latest version. I don't know what can I do to solve it, please help me
I think you could check out the macOS part of this version of the INSTALL file.
Please open your terminal and the command xcode-select --install. It seems like you haven't installed the Clang properly on your Macbook.
If this couldn't help, please let me know. I will help up to solve this issue.
You could also visit OCaml Forum and look for helps there.
I have Windows 10
I installed Haskell Platform 8.2.1 (HaskellPlatform-8.2.1-full-x86_64-setup.exe from https://www.haskell.org/platform/windows.html) (This version have mingw and gcc 6.2.0 for what this matters)
I downloaded Achelane from https://sourceforge.net/projects/wxhaskell/files/wxInstall/
I unzipped it in a path without spaces (a bug prevents it from compiling if path has spaces).
I gave cabal update and updated the config lines extra-prog-path: and extra-lib-dirs
I called Install.bat but when installing wxdirect I get the error:
cabal: The directory "wxdirect-0.92.3.0\" already exists, not unpacking.
Resolving dependencies...
Configuring wxdirect-0.92.3.0...
Building wxdirect-0.92.3.0...
Failed to install wxdirect-0.92.3.0
Build log ( C:\Users\agranero\AppData\Roaming\cabal\logs\ghc-8.2.1\wxdirect-0.92.3.0-LWW4KzdSYghFJi8qk6ENNl.log ):
Preprocessing executable 'wxdirect' for wxdirect-0.92.3.0..
Building executable 'wxdirect' for wxdirect-0.92.3.0..
[ 2 of 12] Compiling IOExtra ( src\IOExtra.hs, dist\build\wxdirect\wxdirect-tmp\IOExtra.o )
src\IOExtra.hs:16:1: error:
Could not find module `System.IO.Strict'
There are files missing in the `strict-0.3.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
16 | import qualified System.IO.Strict as Strictly
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '.\wxdirect-0.92.3.0'
cabal: Error: some packages failed to install:
wxdirect-0.92.3.0-LWW4KzdSYghFJi8qk6ENNl failed during the building phase. The
exception was:
ExitFailure 1
O sistema não pode encontrar o arquivo especificado.
Could not install wxHaskell
The message "O sistema não pode encontrar o arquivo especificado." means "System cannot find specified file." because of my Brazilian Portuguese version of Windows.
If I follow https://wiki.haskell.org/WxHaskell/Windows#From_GitHub and try to install from github I get the same error. Idem for cabal install wx.
I had several previous attempts where I get a little more ahead but I wiped my Haskell install clean and now I am stuck on this error.
If I do not change cabal config file I get the same error too, so I thing it is not relevant (at this point yet).
UPDATE: I managed to go further, but got stuck again: I gave the ghc-pkg check that the message suggest gives a huge amount of warnings. But the summary is:
The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
Cabal-1.24.2.0
process-1.4.3.0
directory-1.3.1.5
time-1.8.0.3
Win32-2.3.1.1
strict-0.3.2
Before that I get in the middle of the huge amount of warnings this:
There are problems in package strict-0.3.2:
Warning: library-dirs: C:\Users\agranero\AppData\Roaming\cabal\x86_64-windows-ghc-8.2.1\strict-0.3.2-7ZEebv7EabCEjNWrS66TpZ
doesn't exist or isn't a directory
Following the sequence (as at each Install.bat run It warned of the next lib) I reinstalled all those libs with cabal install lib --reinstall --force-reinstalls each time I advanced more.
After that I run Install.bat again and I got:
Unpacking to wxdirect-0.92.3.0\
Resolving dependencies...
In order, the following will be installed:
wxdirect-0.92.3.0 (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring wxdirect-0.92.3.0...
Building wxdirect-0.92.3.0...
Installed wxdirect-0.92.3.0
1 arquivo(s) copiado(s).
Unpacking to wxc-0.92.3.0\
Resolving dependencies...
Configuring wxc-0.92.3.0...
Building wxc-0.92.3.0...
Installed wxc-0.92.3.0
1 arquivo(s) copiado(s).
Resolving dependencies...
Downloading wxcore-0.92.3.0...
Configuring wxcore-0.92.3.0...
Building wxcore-0.92.3.0...
Failed to install wxcore-0.92.3.0
Build log ( C:\Users\agranero\AppData\Roaming\cabal\logs\ghc-8.2.1\wxcore-0.92.3.0-Kq7hfMBPtCHIxCJN1O04PM.log ):
Building wxcore-0.92.3.0...
Preprocessing library wxcore-0.92.3.0...
[ 1 of 23] Compiling Graphics.UI.WXCore.GHCiSupport ( src\haskell\Graphics\UI\WXCore\GHCiSupport.hs, dist\build\Graphics\UI\WXCore\GHCiSupport.o )
[ 2 of 23] Compiling Graphics.UI.WXCore.WxcDefs ( src\haskell\Graphics\UI\WXCore\WxcDefs.hs, dist\build\Graphics\UI\WXCore\WxcDefs.o )
[ 3 of 23] Compiling Graphics.UI.WXCore.WxcObject ( src\haskell\Graphics\UI\WXCore\WxcObject.hs, dist\build\Graphics\UI\WXCore\WxcObject.o )
[ 4 of 23] Compiling Graphics.UI.WXCore.WxcClassTypes ( src\haskell\Graphics\UI\WXCore\WxcClassTypes.hs, dist\build\Graphics\UI\WXCore\WxcClassTypes.o )
[ 5 of 23] Compiling Graphics.UI.WXCore.WxcTypes ( src\haskell\Graphics\UI\WXCore\WxcTypes.hs, dist\build\Graphics\UI\WXCore\WxcTypes.o )
src\haskell\Graphics\UI\WXCore\WxcTypes.hs:752:20: error:
Ambiguous occurrence `CBool'
It could refer to either `Foreign.C.CBool',
imported from `Foreign.C' at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:126:1-16
(and originally defined in `Foreign.C.Types')
or `Graphics.UI.WXCore.WxcTypes.CBool',
defined at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:750:1
|
752 | toCBool :: Bool -> CBool
| ^^^^^
src\haskell\Graphics\UI\WXCore\WxcTypes.hs:755:22: error:
Ambiguous occurrence `CBool'
It could refer to either `Foreign.C.CBool',
imported from `Foreign.C' at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:126:1-16
(and originally defined in `Foreign.C.Types')
or `Graphics.UI.WXCore.WxcTypes.CBool',
defined at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:750:1
|
755 | withBoolResult :: IO CBool -> IO Bool
| ^^^^^
src\haskell\Graphics\UI\WXCore\WxcTypes.hs:760:14: error:
Ambiguous occurrence `CBool'
It could refer to either `Foreign.C.CBool',
imported from `Foreign.C' at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:126:1-16
(and originally defined in `Foreign.C.Types')
or `Graphics.UI.WXCore.WxcTypes.CBool',
defined at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:750:1
|
760 | fromCBool :: CBool -> Bool
| ^^^^^
src\haskell\Graphics\UI\WXCore\WxcTypes.hs:763:55: error:
Ambiguous occurrence `CBool'
It could refer to either `Foreign.C.CBool',
imported from `Foreign.C' at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:126:1-16
(and originally defined in `Foreign.C.Types')
or `Graphics.UI.WXCore.WxcTypes.CBool',
defined at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:750:1
|
763 | foreign import ccall "intToBool" intToCBool :: Int -> CBool
| ^^^^^
src\haskell\Graphics\UI\WXCore\WxcTypes.hs:764:48: error:
Ambiguous occurrence `CBool'
It could refer to either `Foreign.C.CBool',
imported from `Foreign.C' at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:126:1-16
(and originally defined in `Foreign.C.Types')
or `Graphics.UI.WXCore.WxcTypes.CBool',
defined at src\haskell\Graphics\UI\WXCore\WxcTypes.hs:750:1
|
764 | foreign import ccall "boolToInt" cboolToInt :: CBool -> Int
| ^^^^^
cabal: Leaving directory 'C:\Users\agranero\AppData\Local\Temp\cabal-tmp-4404\wxcore-0.92.3.0'
cabal: Error: some packages failed to install:
wx-0.92.3.0-AFrVUsv18GZGvCmfR0yEpQ depends on wx-0.92.3.0 which failed to
install.
wxcore-0.92.3.0-Kq7hfMBPtCHIxCJN1O04PM failed during the building phase. The
exception was:
ExitFailure 1
Could not install wxHaskell
Now I am completely lost. There is a report of this error on http://haskell.1045720.n5.nabble.com/GHC-14418-Compile-errors-wxcore-0-92-3-0-td5866957.html and on https://ghc.haskell.org/trac/ghc/ticket/14418
but it was closed as not being a bug of the compiler but of wxHaskell (which I agree with).