Switch icu4c version (Homebrew) - composer-php

When running composer commands I get an error and it seems I have to change the icu4c version. (At the moment I need a composer command to re(install) - composer global require weprovide/valet-plus) However, when I try to change it using the steps below I get errors.
Error when running composer command (globally):
dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
[2] 12103 abort composer global require weprovide/valet-plus
Steps taken to change icu4c version:
$ cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
$ git checkout 2a369a82c7f5b3b2ab2704ff0796635514aae955
$ brew reinstall ./icu4c.rb
Error when reinstall icu4c.rb:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fba9a59e168>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
##O#- #
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
Anyone who knows how to tackle this? I guess version 67.1 is needed for everything to work. Please let me know if you know anything that might be helpful, thanks in advance!

Related

Unable to change GO version in PhotonOS

I have deployed PhotonOS using directions from photon and VIC configuration, while running command docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.6 make all
an Error appears:
Please install go1.7 (found: go version go1.6.3 linux/amd64)
Makefile:152: recipe for target 'goversion' failed
make: *** [goversion] Error 1
`
to solve it I have tried to update
go1.6.3 to go1.7 using solution - changeing go version manually
after steps go version is showing go1.4.2, but the previous error still complains on go version 1.6.3.
Also, I have tried to install "gvm" using bash < <(curl -s -S -L https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer) , whenever I try to call gvm install go1.7 it brings
-bash: gvm: command not found
whenever I retry running gvm-installer it says
ERROR: Already installed!
Any help is highly appreciated!!
use :
docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.7 make all
command instead, that will work on PhotonOS

Wordnet::Similarity installation issue

When I install Wordnet::Similarity on mac, the following error occur:
usr/local/bin/perl "-Iblib/arch" "-Iblib/lib" build/Depthfiles.PL blib/lib/WordNet/synsetdepths.dat
Generating default depth files.
Can't load '/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/Digest/SHA1/SHA1.bundle' for module Digest::SHA1: dlopen(/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/Digest/SHA1/SHA1.bundle, 1): no suitable image found. Did find:
/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/Digest/SHA1/SHA1.bundle: mach-o, but wrong architecture at /usr/local/lib/perl5/5.8.8/darwin-2level/DynaLoader.pm line 230.
at blib/lib/WordNet/Tools.pm line 76
Compilation failed in require at blib/lib/WordNet/Tools.pm line 76.
My attempt was to enter to the downloaded package directory from terminal and type:
perl Makefile.PL
make
make test
sudo make install
I made sure to have installed all prerequisite http://search.cpan.org/dist/WordNet-Similarity/doc/install.pod#Prerequisites. I suspect that this may be due to mac processor version with Perl interface. Any suggestion on how to fix this?
Install libdigest-sha-perl in Ubuntu 14.04 has solved this issue.
Download link:http://packages.ubuntu.com/trusty/amd64/perl/libdigest-sha-perl

brew doctor throwing loads of errors?

I recently installed Laravel on my Mac to begin learning about it as I've heard good things.
My first error was while accessing /public/:
Laravel requires the Mcrypt PHP extension.
I then installed php54-mcrypt and continued learning yesterday evening.
I then came home today from work, hit 'brew update' and then the same error appeared?
I then ran brew install php54-mcrypt to receive:
Warning: php54-mcrypt-5.4.16 already installed
I then ran brew doctor to receive;
Warning: "config" scripts exist outside your system or Homebrew directories
./configure scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/opt/sm/pkg/active/bin/curl-config
/opt/sm/pkg/active/bin/ncurses5-config
/opt/sm/pkg/active/bin/ncursesw5-config
/opt/sm/pkg/active/bin/pkg-config
/opt/sm/pkg/active/bin/xml2-config
/opt/sm/pkg/active/bin/xslt-config
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so' -
dlopen(/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so, 9):
Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so
Reason: image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so' -
dlopen(/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so, 9):
Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so
Reason: image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so' -
dlopen(/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so, 9):
Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so
Reason: image not found in Unknown on line 0
The stuff in /usr/local/Cellar was put there by MacPorts, an earlier package manager for mac. You probably want to remove that. https://guide.macports.org/chunked/installing.macports.uninstalling.html

Installing and loading "rJava"

I am encountering problems loading the "Deducer" package due a loading problem with "rJava". The installation of "rJava" seems to be done correctly, yet it fails when calling it to load.
Please, can anyone shed some light of wisdom? :)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java and make sure R and Java have matching architectures.")
error: object 'key' not found
Error: package/namespace load failed for ‘rJava’
On xubuntu 12.04 with javac 1.7.0_21 set as default via:
$ sudo update-alternatives
then
$ sudo R CMD javareconf
$ sudo R
> update.packages()

Try to port intall gcc47, Error: Dependency 'ld64' not found

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.

Resources