Installing intl extension on macos ventura in xampp failing - xampp

I have tried to follow this procedure in this link https://medium.com/#agaetis/solved-install-intl-php-extension-for-xampp-and-magento-for-macos-mojave-41fa42336fc6 but am stuck on the ./configure step which returns an error below
configure: WARNING: unrecognized options: --with-icu-dir
i can't seem to go past this step
Any help will be appreciated

Related

How to install OS X 10.12 command line tools on 10.11?

I get this error when trying to brew install geckodriver
==> Installing geckodriver dependency: rust
==> Downloading https://static.rust-lang.org/dist/rustc-1.42.0-src.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/rust/1.42.0 --release-channel=stable
==> make
Last 15 lines from /Users/nilshaus/Library/Logs/Homebrew/rust/02.make:
2020-04-12 21:13:48 -0400
make
make: error: unable to find utility "make", not a developer tool or in PATH
xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk" cannot be located.
clang: error: unable to find utility "clang", not a developer tool or in PATH
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Rust dependents that currently fail to build from source https://github.com/Homebrew/homebrew-core/issues/50815
Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.
Obviously 10.11 is no longer supported by Homebrew. The fact that it can't find make is weird, but I'm willing to bet that the real issue is that the rust build expects the 10.12 command line tools. Is there a way for me to install them on OS X 10.11? I have Xcode 8.
I encountered this same error message when brew upgrade installed a new version of clang and tcl-tk. Found a workaround here:
Xcode was overriding the command line tools install. After moving
Xcode to the trash I found the directory of the command line tools
install:
clang --version
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
/Library/Developer/CommandLineTools/usr/bin
https://github.com/pytorch/pytorch/issues/1139#issuecomment-302967251
Another possible workaround - instead of moving Xcode, choose one of the following to specify CLT version:
sudo xcode-select -s /Library/Developer/CommandLineTools
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
To display the current CLT path: xcode-select -p
https://github.com/pytorch/pytorch/issues/1139#issuecomment-303033942

After Mac Mojave update: gfortran error "ld: library not found for -lcrt1.o collect2: error: ld returned 1 exit status"

After updating to MacOS Mojave, I get an error when compiling with gfortran.
gfortran: warning: couldn’t understand kern.osversion ‘18.0.0
ld: library not found for -lcrt1.o
collect2: error: ld returned 1 exit status
This error did not occur before the update. I tracked similar threads and followed their proposed solutions. However, I got further errors when following ...
Update XCode: Now updated to version 10.0.
Run xcode-select --install: I get the following error: xcode-select: error: command line tools are already installed, use "Software Update" to install updates. Following this thread, I did softwareupdate --list and get No new software available.. I conclude, that XCode updating is not the problem here. I also made sure that additional tools are installed upon first opening the updated XCode.
Following this thread, where a similar error was reported, I did brew doctor. Something goes wrong here. I get Warning: Your Xcode (1) is outdated; Please update to Xcode 7.1. Apparently it doesn't recognise to confirmed fact that my XCode is at 10.0. What can be done about that?
Following this thread, I did brew upgrade gcc and get this error: Warning: You are using OS X 10.14.; ....
With so many brewing errors, I checked the brew troubleshooting site, and followed their recommendations. I did cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var opt Cellar Caskroom Frameworks and again brew update and get this error: Error: The /usr/local directory is not writable. .... Following the recommendation in the error message, I did sudo chown -R $(whoami):admin /usr/local but get the error chown: /usr/local: Operation not permitted.
brew reinstall gcc sounds like I would get the same error as in the previous point. Haven't tried so far, worrying for making the mess even worse.
Bottom line: I drowned in errors and see no solution. Any ideas what's the problem and how to solve it are appreciated!
I was experiencing the same problems (I think the crt1.0 error relates to the usage of Fortran commands like GET_COMMAND_ARGUMENT), and also didn't have any luck after trying all the steps you describe in your post, but it got fixed instantly when I installed gfortran 8.2 for MacOS 10.14 with the installer that you can find here: https://github.com/fxcoudert/gfortran-for-macOS/releases (got there via the gcc website: https://gcc.gnu.org/wiki/GFortranBinaries#MacOS).
I hope this also fixes the problems for you!

Unable to install OpenVPN on macOS - configure: error: lzo enabled but missing

I'm trying to install OpenVPN on macOS High Sierra
I have cloned the github repo:
git clone https://github.com/OpenVPN/openvpn
And switched to the latest stable branch:
git checkout origin release/2.4
But when I tried to build the project (following the INSTALL instructions):
autoreconf -i -v -f
./configure
I had this error during the configure step:
configure: error: lzo enabled but missing
Even after installing lzo dependency with macos ports, the problem persists.
The answer to this problem was easier than I thought...
I had just to define the env vars CFLAGS and LDFLAGS before running configure script:
export CFLAGS="-I/opt/local/include"
export LDFLAGS="-L/opt/local/lib"
./configure
make
sudo make install
UPDATE
If you had to install lzo:
using brew: brew install lzo or brew link lzo in case it already exists
using port: sudo port install lzo
I use a M1 MacBook Pro so freedev's answer did not work. I had to instead include the library from inside the homebrew directories so my final configure command was:
./configure LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl#3/lib" CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl#3/include"
The following resolved the issue for me:
sudo apt-get install libssl-dev liblzo2-dev libpam0g-dev
I got this fix from this askubuntu.com openvpn lzo enabled but missing question.
More details: I got each of the 3 error messages shown below separately. Each one was resolved, then I got the next. All 3 are resolved with the one command line above. Basically, 3 developer packages were missing.
configure: error: OpenSSL version too old (resolved with libssl-dev)
configure: error: lzo enabled but missing (resolved with liblzo2-dev)
configure: error: libpam required but missing (resolved with libpam0g-dev)
Thanks to all the other answers which helped to confirm things, triangulate to the answer I felt most confident about!

Xcode - configure: error: no acceptable C compiler found in $PATH

rebuilding a mac from scratch. Installed xcode and rvm then trying to install rubies but they are all giving me:
Error running ' ./configure --prefix=/Users/durrantm/.rvm/rubies/ruby-1.9.3-p125
--enable-shared --disable-install-doc --with-libyaml
--with-opt-dir=/Users/durrantm/.rvm/usr ',
please read /Users/durrantm/.rvm/log/ruby-1.9.3-p125/configure.log
There has been an error while running configure. Halting the installation.
Michaels-MacBook-Air:~ durrantm$
The log has:
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/durrantm/.rvm/src/ruby-1.9.2-p290':
configure: error: no acceptable C compiler found in $PATH
Do I need the gcc C compliler? How do I install it ?
The critical step is actually installing the Xcode command line tools after the download completes and Xcode is installed
After downloading and installing Xcode from the app store, you need to actually install the command line tools it provides.
To do this open Xcode, go to preferences then downloads. There is an "Install" link to add the command line tools.
Once this has been completed, make sure to re-open your terminal window.
Either you install Xcode from the App store or if you have a registered free developer account you can download the XCode command line tools from http://developer.apple.com/downloads
Once you have that installed you can go ahead and install your rubies with rvm.
rbenv install error :
configure: error: in `/tmp/ruby-build.20130911002344.31969/ruby-2.0.0-p0':
configure: error: no acceptable C compiler found in $PATH
...brought me here,
I am currently installing Ruby on rails, ruby through rbenv on a brand new Debian,
Original command is :
rbenv install 2.0.0-p0
As a solution :
sudo apt-get install build-essential
Cheers !
[Sorry for the Xcode ppl]
Read rvm requirements it shows what you need to compile ruby.

Trouble with PHPUnit on Zend Server CE - MacOSX

I've installed Zend Server CE on my MacOS Lion, and everything is running smooth except from PHPUnit.
My installation of PHPUnit was made from the PERL that comes with Zend Server CE.
Here is the output from when I run phpunit through the console:
Failed loading ”/usr/local/zend/lib/php_extensions/xdebug.so”: dlopen(”/usr/local/zend/lib/php_extensions/xdebug.so”, 9): image not found
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/mcrypt.so' - dlopen(/usr/local/zend/lib/php_extensions/mcrypt.so, 9): Library not loaded: /usr/lib/libltdl.3.dylib
Referenced from: /usr/local/zend/lib/php_extensions/mcrypt.so
Reason: image not found in Unknown on line 0
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/local/bin/phpunit on line 39
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/phpunit:0
Does anybody know what the problem or problems could be?
Thanks and regards!
Ok, this is my first answer. So go easy on me.
Tonight I had the very same issues with Zend Server CE on OSX Lion. In order to solve them, you'll have to install xcode as the unix development tools are required.
Let's get started, you have two issues: xdebug.so and libltdl.3.dylib
First xdebug.so is not found, to install it you should run the following from the command line:
sudo su -
It will ask you for you password (if you don't have one just press the enter key). Then:
export CFLAGS="-arch i386 $CFLAGS"
export CCFLAGS="-arch i386 $CCFLAGS"
export CXXFLAGS="-arch i386 $CXXFLAGS"
export LDFLAGS="-arch i386 $LDFLAGS"
/usr/local/zend/bin/pear config-set php_ini /usr/local/zend/etc/php.ini
/usr/local/zend/bin/pecl install xdebug
The first four lines, force the compiler to generate a 32 bit binary, as Zend Server is a 32 bit binary and OSX Lion is a 64 bit operating system.
Alright, now you should have xdebug.so installed on */usr/local/zend/lib/php_extensions*, just make sure that your /usr/local/zend/etc/php.ini file loads xdebug with the following line after all other extensions and before the [zend] section:
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so
Here's the fragment from my php.ini:
...
;extension=odbc.so
;extension=imagick.so
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so
[zend]
zend_extension=/usr/local/zend/lib/ZendExtensionManager.so
...
If it doesn't please add it manually, then check if your php.ini file contains the following line and delete it as xdebug must me loaded as a Zend extension.
extension=xdebug.so
Second, as soon as you install xcode, libltdl.dylib will be available in /usr/lib, so you can create a symbolic link to it with the following command:
sudo ln -s /usr/lib/libltdl.dylib /usr/lib/libltdl.3.dylib
Next time you run phpunit everything should go smoothly (haven't tested any mcrypt functions though).
I just ran into the problem with the mcrypt, when I tried to start the phpunit.
The warning does not appear, if you run phpunit with sudo :)
sudo ./phpunit --version
PHPUnit 3.6.6 by Sebastian Bergmann.

Resources