Re: Prompt what package to install when it is missing

2011-11-11 Thread Jeremy Lavergne
> Today, that's what we're after. Other days, we're after ... so? Command-Not-Found is a python package: http://bazaar.launchpad.net/~zkrynicki/command-not-found/trunk/files/head:/CommandNotFound/ It can pull down a new list of files (scan data) in case you want it to be a separate step with

Re: Prompt what package to install when it is missing

2011-11-11 Thread Scott Webster
Presumably the "easy" thing we could do is keep track of which files exist in the binary archives... Scott On Fri, Nov 11, 2011 at 1:31 PM, Brandon Allbery wrote: > On Fri, Nov 11, 2011 at 16:17, Ryan Schmidt wrote: >> >> Other times, we want to know what port provides a certain header or >> li

Re: Prompt what package to install when it is missing

2011-11-11 Thread Brandon Allbery
On Fri, Nov 11, 2011 at 16:17, Ryan Schmidt wrote: > Other times, we want to know what port provides a certain header or > library we don't have on our systems that's causing some port to fail to > build because someone forgot a dependency. > This we need anyway, as it's a basis for what's being

Re: Prompt what package to install when it is missing

2011-11-11 Thread Ryan Schmidt
On Nov 11, 2011, at 14:51, Jeremy Lavergne wrote: >> What about GUI programs? What about manpages or >> perl modules or php modules etc. that people sometimes ask about? > > That's outside the scope of what we're trying to do here. > > We're only after the programs people would like to execute f

Re: Prompt what package to install when it is missing

2011-11-11 Thread Brandon Allbery
On Fri, Nov 11, 2011 at 16:05, Scott Webster wrote: > On Fri, Nov 11, 2011 at 12:57 PM, Phillip Koebbe > wrote: > > > > On Nov 11, 2011, at 2:43 PM, Brandon Allbery wrote: > >> Actually, it's only fairly recently that Linux package managers started > shipping with a master package manifest that

Re: Prompt what package to install when it is missing

2011-11-11 Thread Scott Webster
On Fri, Nov 11, 2011 at 12:57 PM, Phillip Koebbe wrote: > > On Nov 11, 2011, at 2:43 PM, Brandon Allbery wrote: > >> Actually, it's only fairly recently that Linux package managers started >> shipping with a master package manifest that could be queried for this kind >> of thing, and it's an add

Re: Prompt what package to install when it is missing

2011-11-11 Thread Phillip Koebbe
On Nov 11, 2011, at 2:43 PM, Brandon Allbery wrote: > Actually, it's only fairly recently that Linux package managers started > shipping with a master package manifest that could be queried for this kind > of thing, and it's an add-in instead of basic behavior; as such, it's only > "fundamenta

Re: Prompt what package to install when it is missing

2011-11-11 Thread Jeremy Lavergne
> That would answer the present question "what port provides this executable > program in ${prefix}/bin" but what about ports like apache2 that install > their binaries elsewhere? If they're not in $PATH then we don't care. > What about GUI programs? What about manpages or > perl modules or php m

Re: Prompt what package to install when it is missing

2011-11-11 Thread Brandon Allbery
Actually, it's only fairly recently that Linux package managers started shipping with a master package manifest that could be queried for this kind of thing, and it's an add-in instead of basic behavior; as such, it's only "fundamental" in the sense that there's only one such manifest to query on a

Re: Prompt what package to install when it is missing

2011-11-11 Thread Phillip Koebbe
On Nov 11, 2011, at 1:56 PM, Peng Yu wrote: > On Fri, Nov 11, 2011 at 1:53 PM, Phillip Koebbe > wrote: >> >> On Nov 11, 2011, at 1:02 PM, Peng Yu wrote: >> >>> Hi, >>> >>> On ubuntu, it can prompt me what to do if a package is missing. I'm >>> wondering if there is anything similar on mac. >>

Re: Prompt what package to install when it is missing

2011-11-11 Thread Daniel J. Luke
On Nov 11, 2011, at 3:00 PM, Scott Webster wrote: > Ryan's latest email goes into some of the reasons why > it doesn't work on macports. It would be nice for a variety of > reasons, but it is not easy. ... but just because it's not easy doesn't mean it's not a good idea. As with everything rela

Re: Prompt what package to install when it is missing

2011-11-11 Thread Scott Webster
On Fri, Nov 11, 2011 at 11:56 AM, Peng Yu wrote: > > I was not taking about the general question as you mentioned. A > smaller step is to just prompt macport packages. > As Ryan basically explained, macports does not "know" what commands are installed by all the different ports. Ubuntu's system

Re: Prompt what package to install when it is missing

2011-11-11 Thread Ryan Schmidt
We should keep the discussion on the mailing list. On Nov 11, 2011, at 13:32, Jeremy Lavergne wrote: >> your best bet is >> to use an Internet search engine, e.g. Google. > > This isn't the first time this has come up; why are we waiting for someone > to send us patches? :-P > > In the most nai

Re: Prompt what package to install when it is missing

2011-11-11 Thread Peng Yu
On Fri, Nov 11, 2011 at 1:53 PM, Phillip Koebbe wrote: > > On Nov 11, 2011, at 1:02 PM, Peng Yu wrote: > >> Hi, >> >> On ubuntu, it can prompt me what to do if a package is missing. I'm >> wondering if there is anything similar on mac. >> >> ~$ hg >> The program 'hg' is currently not installed.  Y

Re: Prompt what package to install when it is missing

2011-11-11 Thread Phillip Koebbe
On Nov 11, 2011, at 1:02 PM, Peng Yu wrote: > Hi, > > On ubuntu, it can prompt me what to do if a package is missing. I'm > wondering if there is anything similar on mac. > > ~$ hg > The program 'hg' is currently not installed. You can install it by typing: > sudo apt-get install mercurial >

Re: Prompt what package to install when it is missing

2011-11-11 Thread Peng Yu
On Fri, Nov 11, 2011 at 1:26 PM, Ryan Schmidt wrote: > On Nov 11, 2011, at 13:02, Peng Yu wrote: > >> On ubuntu, it can prompt me what to do if a package is missing. I'm >> wondering if there is anything similar on mac. >> >> ~$ hg >> The program 'hg' is currently not installed.  You can install i

Re: Prompt what package to install when it is missing

2011-11-11 Thread Phil Dobbin
On 11/11/11 19:26, "Ryan Schmidt" wrote: > Phil, I think you missed the point of the question. The question is, if a user > knows they need a program called "hg" but they don't have it installed, what > can they do to find out what port, if any, would install it? I happen to know > that "hg" is p

Re: Prompt what package to install when it is missing

2011-11-11 Thread Ryan Schmidt
On Nov 11, 2011, at 13:02, Peng Yu wrote: > On ubuntu, it can prompt me what to do if a package is missing. I'm > wondering if there is anything similar on mac. > > ~$ hg > The program 'hg' is currently not installed. You can install it by typing: > sudo apt-get install mercurial Phil, I think

Re: Prompt what package to install when it is missing

2011-11-11 Thread Jason Penney
On 11/11/11 2:17 PM, Phil Dobbin wrote: > On 11/11/11 19:13, "Phil Dobbin" wrote: > >> Use port variants: `port variants foobar` will list all variants for the port >> `foobar` > > Or more usefully `port deps` will show you what the port needs to install & > function correctly. Neither of those

Re: Prompt what package to install when it is missing

2011-11-11 Thread Phil Dobbin
On 11/11/11 19:13, "Phil Dobbin" wrote: > Use port variants: `port variants foobar` will list all variants for the port > `foobar` Or more usefully `port deps` will show you what the port needs to install & function correctly. Cheers, Phil.. -- Nothing to see here... move along, move alon

Re: Prompt what package to install when it is missing

2011-11-11 Thread Phil Dobbin
On 11/11/11 19:02, "Peng Yu" wrote: > On ubuntu, it can prompt me what to do if a package is missing. I'm > wondering if there is anything similar on mac. > > ~$ hg > The program 'hg' is currently not installed. You can install it by typing: > sudo apt-get install mercurial Use port variants:

Prompt what package to install when it is missing

2011-11-11 Thread Peng Yu
Hi, On ubuntu, it can prompt me what to do if a package is missing. I'm wondering if there is anything similar on mac. ~$ hg The program 'hg' is currently not installed. You can install it by typing: sudo apt-get install mercurial -- Regards, Peng _