I'm using the latest version of manjaro 64 bit and latest version of xampp. I want to install composer and laravel; I tried many solutions on stackoverflow and askubuntu. Every time I see a different error, like openssl and phar are missing and stuff like that. But in fact nothing is missing; I enabled them from php.ini
So are there any manjaro user/archer who got Laravel to work on xampp? How?
Edit
php -i | grep ini
outputs
▶ php -i | grep ini
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/php_openssl.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/php_phar.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/php_phar.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Configuration File (php.ini) Path => /opt/lampp/etc
Loaded Configuration File => /opt/lampp/etc/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
Supported handlers => gdbm cdb cdb_make inifile flatfile
init_command_executed_count => 0
init_command_failed_count => 0
com_init_db => 0
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
open sourced by => Epinions.com
PHPRC => /opt/lampp/etc/php.ini
$_SERVER['PHPRC'] => /opt/lampp/etc/php.ini
- This is exactly how I installed composer. I did what both answers said
- My /opt/lampp/etc/php.ini as you can see, everything needed is loaded.
- This php-mcrypt is installed, it comes with its own php version but I'm not using that, I'm using Xampp's version
- I'm using newest version of xampp 64 bit, the one that comes with PHP 7, same issue with previous versions.
- In my zshrc I have
export PHPRC=/opt/lampp/etc/php.ini export PATH=$PATH:/opt/lampp/bin
If I manage to correctly load openssl, mcrypt and phar, I think all my problems will be solved. Composer seems to install without problems but issues start to pop up when I install laravel. It also installs without problems but displays warnings shown above.