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: 2021-08-24 14:09 UTC
From: mfischer@php.net Assigned: cmb (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.5 OS: Linux Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mfischer@php.net
New email:
PHP Version: OS:

 

 [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
It requires the enchant library. What pecl asks is where it is installed (for example in /usr).

You also need the enchant library development package (-devel on many distributions).

Does it answer your question?

Gr??e,
 [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
 [2017-10-24 05:17 UTC] kalle@php.net
-Status: Open +Status: Assigned -Package: enchant +Package: *General Issues
 [2017-10-24 07:39 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: pajoye +Assigned To:
 [2021-08-24 11:52 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-24 11:52 UTC] cmb@php.net
Not sure what to do with this ticket.  enchant has been bundled
long ago, so is irrelevant wrt. pecl.  If it is about improving
the prompt, that would be a pear-core issue[1].

[1] <https://github.com/pear/pear-core>
 [2021-08-24 14:07 UTC] mfischer@php.net
This is so long ago, I barely remembered this and had to re-read all of it to get the gist.

I don't think its anyone's time worth spending on this and I suggest we just close/won't fix

PS: I'm the OP
 [2021-08-24 14:09 UTC] cmb@php.net
-Status: Feedback +Status: Closed
 [2021-08-24 14:09 UTC] cmb@php.net
Thanks for the swift reply.  I'm closing then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 07:01:29 2024 UTC