All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] PHP installation issues
@ 2021-03-22 14:13 Alassane
  2021-03-25 12:44 ` Alassane
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alassane @ 2021-03-22 14:13 UTC (permalink / raw)
  To: buildroot

Hello,

I have tried to generate a linux image with buildroot2020.11.1 but i'm
having some issues after that.
First of all, i've activated the external php extension "php-imagick" in
target package after i run "make menuconfig".
After that, i perform a full rebuild, reflash my sd card, launch my target
but when i run the commande "php -m", it doesn't show me the "imagick"
module...
And this is the following error message i'm facing when trying to run a
program with the "php" command : *PHP Fatal error:  Uncaught Error: Class
'Imagick' not found*

Also, i've selected the php "iconv" package and facing this error when i
try to run my php program : *PHP Notice:  iconv(): Unknown error (22).*

Do you know where these issues i'm facing could potentially come from?

Kind regards

Thank you

Alassane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210322/0a21e09c/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] PHP installation issues
  2021-03-22 14:13 [Buildroot] PHP installation issues Alassane
@ 2021-03-25 12:44 ` Alassane
  2021-03-25 22:07 ` Peter Seiderer
  2021-03-25 22:28 ` Peter Seiderer
  2 siblings, 0 replies; 5+ messages in thread
From: Alassane @ 2021-03-25 12:44 UTC (permalink / raw)
  To: buildroot

Hello,

Do you have any idea of what the issue could be?

Kind regards

Thank you

Le lun. 22 mars 2021 ? 15:13, Alassane <alassaneg@gmail.com> a ?crit :

> Hello,
>
> I have tried to generate a linux image with buildroot2020.11.1 but i'm
> having some issues after that.
> First of all, i've activated the external php extension "php-imagick" in
> target package after i run "make menuconfig".
> After that, i perform a full rebuild, reflash my sd card, launch my target
> but when i run the commande "php -m", it doesn't show me the "imagick"
> module...
> And this is the following error message i'm facing when trying to run a
> program with the "php" command : *PHP Fatal error:  Uncaught Error: Class
> 'Imagick' not found*
>
> Also, i've selected the php "iconv" package and facing this error when i
> try to run my php program : *PHP Notice:  iconv(): Unknown error (22).*
>
> Do you know where these issues i'm facing could potentially come from?
>
> Kind regards
>
> Thank you
>
> Alassane
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210325/c5bfa49b/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] PHP installation issues
  2021-03-22 14:13 [Buildroot] PHP installation issues Alassane
  2021-03-25 12:44 ` Alassane
@ 2021-03-25 22:07 ` Peter Seiderer
  2021-03-25 22:28 ` Peter Seiderer
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Seiderer @ 2021-03-25 22:07 UTC (permalink / raw)
  To: buildroot

Hello Alassane,

On Mon, 22 Mar 2021 15:13:47 +0100, Alassane <alassaneg@gmail.com> wrote:

> Hello,
>
> I have tried to generate a linux image with buildroot2020.11.1 but i'm
> having some issues after that.
> First of all, i've activated the external php extension "php-imagick" in
> target package after i run "make menuconfig".
> After that, i perform a full rebuild, reflash my sd card, launch my target
> but when i run the commande "php -m", it doesn't show me the "imagick"
> module...

	$ echo -e "[Imagick]\nextension=imagick.so" >> /etc/php.ini
	$ php -m
[PHP Modules]
Core
date
hash
imagick
pcre
posix
Reflection
session
SPL
standard
zlib

[Zend Modules]

Regards,
Peter

> And this is the following error message i'm facing when trying to run a
> program with the "php" command : *PHP Fatal error:  Uncaught Error: Class
> 'Imagick' not found*
>
> Also, i've selected the php "iconv" package and facing this error when i
> try to run my php program : *PHP Notice:  iconv(): Unknown error (22).*
>
> Do you know where these issues i'm facing could potentially come from?
>
> Kind regards
>
> Thank you
>
> Alassane

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] PHP installation issues
  2021-03-22 14:13 [Buildroot] PHP installation issues Alassane
  2021-03-25 12:44 ` Alassane
  2021-03-25 22:07 ` Peter Seiderer
@ 2021-03-25 22:28 ` Peter Seiderer
  2021-03-25 22:41   ` Alassane
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Seiderer @ 2021-03-25 22:28 UTC (permalink / raw)
  To: buildroot

Hello Alassane,

On Mon, 22 Mar 2021 15:13:47 +0100, Alassane <alassaneg@gmail.com> wrote:

> Hello,
>
> I have tried to generate a linux image with buildroot2020.11.1 but i'm
> having some issues after that.
> First of all, i've activated the external php extension "php-imagick" in
> target package after i run "make menuconfig".
> After that, i perform a full rebuild, reflash my sd card, launch my target
> but when i run the commande "php -m", it doesn't show me the "imagick"
> module...
> And this is the following error message i'm facing when trying to run a
> program with the "php" command : *PHP Fatal error:  Uncaught Error: Class
> 'Imagick' not found*
>
> Also, i've selected the php "iconv" package and facing this error when i
> try to run my php program : *PHP Notice:  iconv(): Unknown error (22).*

Strace output shows:

235   openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
235   openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
235   futex(0x7fb0b76864, FUTEX_WAKE_PRIVATE, 2147483647) = 0
235   write(2, "PHP Notice:  iconv(): Unknown er"..., 69) = 69

Take a look at the Toolchain --> Copy gconv libraries (BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY)...

Regards,
Peter

>
> Do you know where these issues i'm facing could potentially come from?
>
> Kind regards
>
> Thank you
>
> Alassane

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] PHP installation issues
  2021-03-25 22:28 ` Peter Seiderer
@ 2021-03-25 22:41   ` Alassane
  0 siblings, 0 replies; 5+ messages in thread
From: Alassane @ 2021-03-25 22:41 UTC (permalink / raw)
  To: buildroot

Hi Peter,

Thank for your answer.
i've added "extension=imagick.so" in the file /etc/php.ini and i'm now able
to use imagick. That was a tricky one...
Regarding the "iconv()" function, the issue was that i had to select the
option "extra encodings" when selecting libiconv.

kind regards

Le jeu. 25 mars 2021 ? 23:28, Peter Seiderer <ps.report@gmx.net> a ?crit :

> Hello Alassane,
>
> On Mon, 22 Mar 2021 15:13:47 +0100, Alassane <alassaneg@gmail.com> wrote:
>
> > Hello,
> >
> > I have tried to generate a linux image with buildroot2020.11.1 but i'm
> > having some issues after that.
> > First of all, i've activated the external php extension "php-imagick" in
> > target package after i run "make menuconfig".
> > After that, i perform a full rebuild, reflash my sd card, launch my
> target
> > but when i run the commande "php -m", it doesn't show me the "imagick"
> > module...
> > And this is the following error message i'm facing when trying to run a
> > program with the "php" command : *PHP Fatal error:  Uncaught Error: Class
> > 'Imagick' not found*
> >
> > Also, i've selected the php "iconv" package and facing this error when i
> > try to run my php program : *PHP Notice:  iconv(): Unknown error (22).*
>
> Strace output shows:
>
> 235   openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) =
> -1 ENOENT (No such file or directory)
> 235   openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> 235   futex(0x7fb0b76864, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> 235   write(2, "PHP Notice:  iconv(): Unknown er"..., 69) = 69
>
> Take a look at the Toolchain --> Copy gconv libraries
> (BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY)...
>
> Regards,
> Peter
>
> >
> > Do you know where these issues i'm facing could potentially come from?
> >
> > Kind regards
> >
> > Thank you
> >
> > Alassane
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210325/eb1f056d/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-25 22:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-22 14:13 [Buildroot] PHP installation issues Alassane
2021-03-25 12:44 ` Alassane
2021-03-25 22:07 ` Peter Seiderer
2021-03-25 22:28 ` Peter Seiderer
2021-03-25 22:41   ` Alassane

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.