Quantcast

[Tiki-devel] setup.sh and php location

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Tiki-devel] setup.sh and php location

Bernard Sfez-3
Hello,

I running into troubles since a few weeks with Composer on my Mac (local).

The one I got now is composer throwing an error about mcrypt:
    - onelogin/php-saml 2.10.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

———

When I check my system;
which php
/usr/bin/php

php -v
PHP 5.6.30 (cli) (built: Jan 23 2017 15:08:17)

php -m | grep mcrypt
mcrypt

(phpinfo on Tiki16x show also mcrypt installed)

———

I checked my .bash_profile and .profile

alias php='/Applications/MAMP/bin/php/php5.6.30/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php5.6.30.ini"'
alias pear='/Applications/MAMP/bin/php/php5.6.30/bin/pear'
alias pecl='/Applications/MAMP/bin/php/php5.6.30/bin/pecl'

All this make sense

———

I edited setup.sh and enable the debug functions.

When I run it : 

D> old path: /opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.10/bin:/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.27/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
D>
D> /bin exists
D> /usr/bin exists
D> /sbin exists
D> /usr/sbin exists
D> /usr/local/bin exists
D> /usr/local/sbin does not exist
D> /opt/bin does not exist
D> /opt/sbin does not exist
D> /opt/local/bin exists
D> /opt/local/sbin exists
D>
D> new path: /opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.10/bin:/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.27/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin

???
/Applications/MAMP/bin/php/php5.6.10
/Applications/MAMP/bin/php/php5.6.27
(they don’t exist by the way)




Bernard Sfez | bsfez.com


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Tiki-devel] setup.sh and php location

Bernard Sfez-3
Bump…

Anyone can help me understand why setup.sh log show me different version of php and not the one I’m using ?


On 1 Apr 2017, at 22:16 , Bernard Sfez <[hidden email]> wrote:

Hello,

I running into troubles since a few weeks with Composer on my Mac (local).

The one I got now is composer throwing an error about mcrypt:
    - onelogin/php-saml 2.10.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

———

When I check my system;
which php
/usr/bin/php

php -v
PHP 5.6.30 (cli) (built: Jan 23 2017 15:08:17)

php -m | grep mcrypt
mcrypt

(phpinfo on Tiki16x show also mcrypt installed)

———

I checked my .bash_profile and .profile

alias php='/Applications/MAMP/bin/php/php5.6.30/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php5.6.30.ini"'
alias pear='/Applications/MAMP/bin/php/php5.6.30/bin/pear'
alias pecl='/Applications/MAMP/bin/php/php5.6.30/bin/pecl'

All this make sense

———

I edited setup.sh and enable the debug functions.

When I run it : 

D> old path: /opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.10/bin:/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.27/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
D>
D> /bin exists
D> /usr/bin exists
D> /sbin exists
D> /usr/sbin exists
D> /usr/local/bin exists
D> /usr/local/sbin does not exist
D> /opt/bin does not exist
D> /opt/sbin does not exist
D> /opt/local/bin exists
D> /opt/local/sbin exists
D>
D> new path: /opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.10/bin:/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.27/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin

???
/Applications/MAMP/bin/php/php5.6.10
/Applications/MAMP/bin/php/php5.6.27
(they don’t exist by the way)




Bernard Sfez | bsfez.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

Bernard Sfez | bsfez.com


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Tiki-devel] setup.sh and php location

Bernard Sfez-3
Things work the mysterious way sometimes with Tiki…

After 2 days, I svn up and tried to run sh setup.sh in case of… and it worked.
I didn’t change anything related to fix that on my computer (was busy).

"But you know what, I’m happy"… ;)

B

On 3 Apr 2017, at 07:42 , Bernard Sfez <[hidden email]> wrote:

Bump…

Anyone can help me understand why setup.sh log show me different version of php and not the one I’m using ?


On 1 Apr 2017, at 22:16 , Bernard Sfez <[hidden email]> wrote:

Hello,

I running into troubles since a few weeks with Composer on my Mac (local).

The one I got now is composer throwing an error about mcrypt:
    - onelogin/php-saml 2.10.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

———

When I check my system;
which php
/usr/bin/php

php -v
PHP 5.6.30 (cli) (built: Jan 23 2017 15:08:17)

php -m | grep mcrypt
mcrypt

(phpinfo on Tiki16x show also mcrypt installed)

———

I checked my .bash_profile and .profile

alias php='/Applications/MAMP/bin/php/php5.6.30/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php5.6.30.ini"'
alias pear='/Applications/MAMP/bin/php/php5.6.30/bin/pear'
alias pecl='/Applications/MAMP/bin/php/php5.6.30/bin/pecl'

All this make sense

———

I edited setup.sh and enable the debug functions.

When I run it : 

D> old path: /opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.10/bin:/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.27/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
D>
D> /bin exists
D> /usr/bin exists
D> /sbin exists
D> /usr/sbin exists
D> /usr/local/bin exists
D> /usr/local/sbin does not exist
D> /opt/bin does not exist
D> /opt/sbin does not exist
D> /opt/local/bin exists
D> /opt/local/sbin exists
D>
D> new path: /opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.10/bin:/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.6.27/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin

???
/Applications/MAMP/bin/php/php5.6.10
/Applications/MAMP/bin/php/php5.6.27
(they don’t exist by the way)




Bernard Sfez | bsfez.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

Bernard Sfez | bsfez.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

Bernard Sfez | bsfez.com


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Loading...