php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58050 pecl install asks a weird dialog about libenchant prefix?
Submitted: 2008-02-21 05:22 UTC Modified: 2008-02-21 09:41 UTC
From: mfischer@php.net Assigned: pajoye
Status: Open Package: enchant (PECL)
PHP Version: 5.2.5 OS: Linux Debian
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-02-21 05:22 UTC] mfischer@php.net
Description:
------------
I'm not sure what the install procedure really wants here from me:

dev01:~# pecl install enchant
downloading enchant-1.0.1.tgz ...
Starting to download enchant-1.0.1.tgz (8,334 bytes)
.....done: 8,334 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
 1. libenchant prefix? : shared

1-1, 'all', 'abort', or Enter to continue:

I usually go on with "Enter", but It is not clear to me what 1-1 or 'all' really means in this context and why I'm acually asked.

Reproduce code:
---------------
Just run pecl install enchant

Expected result:
----------------
Don't ask weird questions ;) No, seriously, maybe it can be more elaborated what this is really for? Thanks.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-21 05:27 UTC] mfischer@php.net
I forgot to add: the dropdown doens't allow me to select my currently installed PHP-Version, 5.2.5. I had to manually alter it.
 [2008-02-21 06:00 UTC] pierre dot php at gmail dot com

 [2008-02-21 06:53 UTC] mfischer@php.net
It does now, yes. But could the actual dialog in the ./configure maybe made clearer?

Also, I though usually one would have to specify this explicitly anyway with some argument to ./configure? Actually I think over the many years of all the extension I've installed it's the first with an interactive dialog and thus I was very confused right from the start. But I understand reason, now that I think twice, because with pecl itself you would not have a way to pass the parameters I guess.

Anyway, I think the question from ./configure is not clear in that matter. Thank you.
 [2008-02-21 07:30 UTC] pierre dot php at gmail dot com
"I though usually one would have to specify this explicitly anyway with some argument to ./configure?"

This is what the *pecl* command does when it asks you to fill this argument.

"Actually I think over the many years of all the extension I've installed it's the first with an interactive dialog and thus I was very confused right from the start."

Because other does not have a correct package.xml. You have to explicitly tell pecl each argument it has to ask (pressing enter will use the default).

"But I understand reason, now that I think twice, because with pecl itself you would not have a way to pass the parameters I guess."

Exactly.

"Anyway, I think the question from ./configure is not clear in that matter. Thank you."

And how do you want it then?
 [2008-02-21 08:30 UTC] mfischer@php.net
Good question. What confuses me is:

" 1. libenchant prefix? : shared"

It's saying prefix? and giving shared. Totally confusing.

I would understand  "Path to libenchant? : /usr" much better.

The next line also was confusing:

"1-1, 'all', 'abort', or Enter to continue:"

What means "1-1" and "all" ?
 [2008-02-21 09:34 UTC] pierre dot php at gmail dot com
> " 1. libenchant prefix? : shared"
> 
> It's saying prefix? and giving shared. Totally confusing.
> 
> I would understand  "Path to libenchant? : /usr" much better.

The syntax to build a module shared when built within the php src tree is: --with-foo=/usr,shared

Not very obvious but it is how it works.

> "1-1, 'all', 'abort', or Enter to continue:"
> What means "1-1" and "all" ?

No idea, which pear version do you use?
 [2008-02-21 09:41 UTC] mfischer@php.net
dev01:~# pecl version
PEAR Version: 1.6.1
PHP Version: 5.2.5-2
Zend Engine Version: 2.2.0

Thanks
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC