Hi everyone samba --version Version 4.0.0alpha19-GIT-c9ef087 Tricky installation. Existing alpha 18 git Had to run make twice. OK with that now. But none of the commands would work. samba, samba-tool. . . All gave errors e.g. samba-tool Traceback (most recent call last): File "/home/steve/bin/samba-tool", line 26, in <module> from samba.netcmd.main import cmd_sambatool File "bin/python/samba/netcmd/main.py", line 24, in <module> from samba.netcmd.delegation import cmd_delegation File "bin/python/samba/netcmd/delegation.py", line 25, in <module> from samba import provision File "bin/python/samba/provision/__init__.py", line 80, in <module> from samba.provision.common import ( File "bin/python/samba/provision/common.py", line 31, in <module> import tdb ImportError: No module named tdb I found that the build had placed hundreds of links in the first directory in my path, /home/steve/bin. I moved the folder out of he path and the commands began working again. There are many binaries/scripts I'd not seen before e.g. localgroup_add read_7 stat_3 write_12 l to name but a few. Things seem to be working with the stuff under samba/bin and samba/sbin but could someone explain what has happened? Will I be needing that stuff? Do I need to run upgradeprovision? BTW. Would it be possible for make install to actually install, rather than have to rely on stuff that's left in my home folder? Thanks and sorry for so many questions. Steve
Hi On 25 February 2012 04:26, steve <steve at steve-ss.com> wrote:> Hi everyone > > samba --version > Version 4.0.0alpha19-GIT-c9ef087 > > Tricky installation. Existing alpha 18 git > > Had to run make twice. OK with that now. But none of the commands wouldYou should probably not have to run make twice. Just use the installed tools instead of the ones in the build directory. e.g. /usr/local/samba/bin/samba-tool instead of source4/scripting/bin/samba-tool.> work. samba, samba-tool. . . All gave errors e.g. > samba-tool > Traceback (most recent call last): > ?File "/home/steve/bin/samba-tool", line 26, in <module> > ? ?from samba.netcmd.main import cmd_sambatool[...]> ImportError: No module named tdb > > I found that the build had placed hundreds of links in the first directory > in my path, /home/steve/bin. I moved the folder out of he path and the > commands began working again.>From the above it seems like you might have checked out the sambasource into /home/steve and then built it there? Or if not then perhaps you installed to /home/steve instead of /usr/local/samba (if not this time then some time in the past.) If you somehow had the source in /home/steve instead of e.g. /home/steve/samba or something, then don't do that :) Samba uses the "bin" subdirectory while building and the stuff it stores there should not be used after you've installed it.> There are many binaries/scripts I'd not seen before e.g. > > localgroup_add ? ? ? ? read_7 ? ? ? ? ? ? stat_3 ? ? ? ? ? write_12Yes, that's definitely from the samba build and should NOT be in /home/steve/bin or any other directory in your PATH.> to name but a few. Things seem to be working with the stuff under samba/bin > and samba/sbin but could someone explain what has happened? Will I be > needing that stuff?No.> Do I need to run upgradeprovision?No. You really should subscribe to samba-technical. I've copied my reply there. Andrew just posted an announcement about the release of samba4 alpha 18 in which he said not to run upgradeprovision for the moment. The alpha 19-GIT-blah is a development build, so the latest official release is alpha 18.> BTW. Would it be possible for make install to actually install, rather than > have to rely on stuff that's left in my home folder?make install *does* actually install and does not rely on stuff left in your home directory.> Thanks and sorry for so many questions. > Steve-- Michael Wood <esiotrot at gmail.com>