Yannick Warnier
2015-Jan-28 00:55 UTC
[Xapian-discuss] PHP bindings Debian/Ubuntu packaging wiki page does not mention ~
Hi, On http://trac.xapian.org/wiki/FAQ/PHP%20Bindings%20Package, it doesn't say where the commands should be executed. For some reason, if a user executes them from /tmp/ on Ubuntu trusty, the following error message is returned and prevents the packaging to work (at the env ... debian/rules line): env: debian/rules: Permission denied However, executed from the home directory (or one of its subdirectories), everything works like a charm... I'd like to ask you to update the wiki to mention it, so it's faster for me next time :-) Thanks! Yannick
Olly Betts
2015-Jan-28 03:54 UTC
[Xapian-discuss] PHP bindings Debian/Ubuntu packaging wiki page does not mention ~
On Wed, Jan 28, 2015 at 12:55:43AM -0000, Yannick Warnier wrote:> On http://trac.xapian.org/wiki/FAQ/PHP%20Bindings%20Package, it doesn't > say where the commands should be executed. > For some reason, if a user executes them from /tmp/ on Ubuntu trusty, the > following error message is returned and prevents the packaging to work (at > the env ... debian/rules line): > > env: debian/rules: Permission deniedI suspect you have /tmp mounted noexec. I don't have a trusty machine handy to check, but I'm told that's the default on Ubuntu utopic. Building software under /tmp is probably unwise in general - it's a tmpfs on many systems.> However, executed from the home directory (or one of its subdirectories), > everything works like a charm... > > I'd like to ask you to update the wiki to mention it, so it's faster for > me next time :-)It's a wiki - you don't have to ask others to change it for you. Cheers, Olly
Yannick Warnier
2015-Jan-28 17:50 UTC
[Xapian-discuss] PHP bindings Debian/Ubuntu packaging wiki page does not mention ~
> On Wed, Jan 28, 2015 at 12:55:43AM -0000, Yannick Warnier wrote: >> On http://trac.xapian.org/wiki/FAQ/PHP%20Bindings%20Package, it doesn't >> say where the commands should be executed. >> For some reason, if a user executes them from /tmp/ on Ubuntu trusty, >> the >> following error message is returned and prevents the packaging to work >> (at >> the env ... debian/rules line): >> >> env: debian/rules: Permission denied > > I suspect you have /tmp mounted noexec. I don't have a trusty machine > handy to check, but I'm told that's the default on Ubuntu utopic.Indeed. That explains it.> Building software under /tmp is probably unwise in general - it's a tmpfs > on many systems.>> However, executed from the home directory (or one of its >> subdirectories), >> everything works like a charm... >> >> I'd like to ask you to update the wiki to mention it, so it's faster for >> me next time :-) > > It's a wiki - you don't have to ask others to change it for you.Sorry, I didn't realize it was an open wiki (I must have confused it with another Trac wiki which prevented me access recently). I added the corresponding information to the page, plus a little comment about the PHP config once it's installed (I always thought it was missing from the doc). Cheers and thank you for your efforts on Xapian. If you need to know, it is included as an (optional) indexing engine in the GNU/GPLv3 e-learning software Chamilo LMS (currently more than 7M users, but not many enable Xapian in it).