Kismet Wireless

Kismet Forums

 

Posted by:dragorn
Subject:Compiling plugins on Ubuntu
Date:06:28:55 23/05/2010

> I managed to manually compile and install the included plugins on Ubuntu, but "make plugins" won't work: I got an error message along the lines of "sh: pushd: not found".
> This was with the downloaded kismet-2010-01-R1.tar.gz
>
> I found out the reason is Ubuntu has /bin/sh pointing to /bin/dash, and the dash shell doesn't support pushd/popd, which the makefile uses to to descend into each plugin directory.
>
> After putting "SHELL = /bin/bash" in the makefile everything worked as expected.
>
> I don't know much about how makefiles work, but it looks as if those pushd/popd commands could just be replaced with cd, so it wouldn't depend on those specific shell features being present.

Oh good, Ubuntu decided to be "special" once again. Of course.

No, they can't just be replaced with cd - if you have, for example, a symlink, then cd foo; cd ..; is not reflexive.

I tweaked it to launch yet another sub-shell to try to keep Ubuntu's crappy nonstandard shell happy, instead.


Reply to this message