-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curses6 can't be found on Debian 10; also need to validate installation process. #5
Comments
Seems like I had a similar problem compiling on Ubuntu. Can't recall though. |
@unquietwiki also, there is an AppImage, fyi. In case you want something up and running quicker. |
Thanks for the quick reply! I might mess around with it more later, but any further attention today will be primarily on finishing my Samba Server install in general. |
@dmulder update for you of sorts: the AppImage has an interesting habit of quitting after attempts to do stuff with it. Might be related to the build issue you identified. |
@unquietwiki I fixed the appimage build and ran it on Debian 10. Everything seems to work except the gpmc, which is crashing for some reason. I'll have to do some investigation on that. |
@unquietwiki if you checkout master and pull, I've fixed the curses error you were getting for Debian 10. But you must run ./autogen.sh prior to running ./configure. The autogen.sh script does some hacky workarounds to make the build succeed. |
@dmulder your fixes got a lot farther this time, thanks! Got a new error, but it seems to be based on a yast dependency?
|
@unquietwiki You need to install libfl-dev. |
You're probably going to run into an error for symbol crypt_gensalt_rn next ;) |
@unquietwiki To get crypt_gensalt_rn, you'll need to install libxcrypt. I couldn't find this package for Debian 10, so I built one here: https://download.opensuse.org/repositories/home:/dmulder:/buster/Debian_10/ |
You're on the ball man! I'm getting that loaded now. (crosses fingers)
…On Wed, Feb 3, 2021 at 1:46 PM David Mulder ***@***.***> wrote:
@unquietwiki <https://github.com/unquietwiki> To get crypt_gensalt_rn,
you'll need to install libxcrypt. I couldn't find this package for Debian
10, so I built one here:
https://download.opensuse.org/repositories/home:/dmulder:/buster/Debian_10/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHV7P4CE7SSJHHRYUGA3UTS5G73PANCNFSM4W73F5ZA>
.
--
Michael Adams
https://unquietwiki.com/ <http://www.unquietwiki.com/>
|
I also just added some build instructions to the readme, like you requested. |
Make sure you install libjemalloc2 libjemalloc-dev. |
Thanks! And yeah, that's exactly where it crashed just now. 😆 |
Well, I'm out of here for the day now. So far yast-core has succeeded, and it's moved on to building libyui. |
Thank you again for your attention to this @dmulder . BTW, I mentioned this project on Reddit yesterday; I was surprised how few watchers this had! https://www.reddit.com/r/opensource/comments/lbaeko/admintools_for_samba_ncursesbased_samba_dns/ |
FYI, these tools are pared together because they mimic MS Administrative Tools ;) |
@dmulder there's no python3-samba module in Debian 10, so had to install that via pip3. Then it complained about rake missing, so I installed ruby & rake. Now I get a new error. Does it look like it's related to needing https://github.com/yast/yast-python-bindings installed?
|
Just install samba to get the samba python code. I wouldn't install it from pip. I'm not sure which package Debian stores it in. |
@dmulder I did do a make install. I'll clean / reconfigure / rebuild ; it's weird that the program was able to install, if a dependency was still in error (given how picky it's been). |
|
hrm, I think you have to install the rake ruby gem before that rake install command will succeed. |
@dmulder gem install rake, then trying the build process again, yielded no change. 😞 |
@unquietwiki sorry, I meant the yast-rake gem: Either way, that will only permit installing the modules. It seems you're still missing the yast python bindings. I've almost got to the point you're at, and I'll see what's going on. |
@unquietwiki I made a little progress. The yast python code gets installed to the wrong directory on Debian. |
facepalm |
So, seems you'll need to either install samba from unstable sid (which is causing dependency issues for me), or self build samba. The samba version packaged with Debian 10 (4.9.5) isn't new enough for these tools. |
@dmulder thanks for the effort & then suggestions. There doesn't seem to be an immediate backport; did find https://wiki.debian.org/SimpleBackportCreation, which might be useful for this context. |
In the meanwhile, since I'm still at the point I can switch gears to other stuff, I am pivoting to using https://packages.debian.org/bullseye/ packages. 🔥 |
Well, updating to Debian 11 (bullseye) packages worked out, as far as surviving reboot. gcc v10 was loaded, so compilation is now failing on some things. EDIT: I guess Samba didn't survive that.
|
@dmulder I wiped my VM and loaded Ubuntu 20.04. Build & install instructions worked much better. Even tried adding "sudo gem install yast" after I got that error starting admin-tools, but didn't matter.
|
@unquietwiki I'm building the latest samba for Debian 10 here: https://download.opensuse.org/repositories/home:/dmulder:/buster/Debian_10/ |
Yeah, don't use gem install to install yast. The problem is just that the build is putting the yast libs in the wrong location. |
I'm currently testing the build in Ubuntu 20.10, fyi. |
@dmulder Thanks for the update. Since my "production" thing is working, I can help test the Debian 10 stuff in a separate VM. Moving site-packages like that seems dangerous; would a symlink be a better way (move the stuff, then symlink the old dir so anything new still ends up there) ??? |
Yes, creating a symlink back would be better. I really need to figure out why the make install is putting those in the wrong directory though (maybe there is something wrong in the configure). |
Well as per the automake docs, I'm installing the yast module in the correct directory (pyexecdir). For some reason this is broken on Ubuntu/Debian systems. This is all done under the hood too (autotools auto-magically selects this location somehow). So I'd say this is clearly a bug in either autotools, or in Debian's python search paths. |
@dmulder Hello automake, my old friend... I remember messing around with some automake stuff trying to compile something, and realizing there was a significant version difference on CentOS and Debian/Ubuntu platforms. Automake got some changes that I had to account for. |
@dmulder Hey there. Checking in; I've had a busy month, and I hope you're doing alright. Since I hadn't really done anything with my instance yet, I wiped & reloaded it with the GCP image for OpenSUSE 15.1, and then upgraded to 15.2. Running into an interesting git clone issue with one of the submodules.
|
@dmulder I tried taking another look at this. I found that patch bison libtool gettext-tools cmake also need to be in the install list for OpenSUSE. I also tried the latest AppImage build, and that still doesn't work. I'm also going to ping the libyui folks on what release tag needs to happen here. |
@shundhammer just pointed out some possible issues/solutions for the build issue. |
I'll have to take a look at this. |
Thanks @dmulder . BTW, I did swap back to Ubuntu 20.04 LTS, since that was the "successful" SAMBA-AD install I've had thus far, and wanted to try out https://wiki.samba.org/index.php/GSOC_cockpit_samba_ad_dc#Ubuntu_20.04_Installation with it. Let me know when you need me to test something! |
@unquietwiki I think I finally have this fixed (or close to fixed). It builds on opensuse again. More distros need testing. |
@dmulder thanks for the follow-up! I guess since then, Debian 11 is now mainstream, and I no longer manage the instance I was working with back then. But I can give this a go for the next instance, or even spin up a VM to do some testing for myself. Lemme know if you want any help on that. |
@unquietwiki I'm about to test on Ubuntu 22.10. Let me see where I get with that first. |
Hey there @dmulder ; thank you for making this, I saw it on the Samba Wiki. Trying to set it up on a Debian 10 instance; I used the Ubuntu install commands and then had to figure out the right process just to get things to compile. The remaining hangup seems to be proper detection of libcurses6
Error
Install process (probably need to add this to the README, if you can tell me it's valid)
Also tried loading ncurses-6.2 to /usr/local, but that didn't seem to help.
The text was updated successfully, but these errors were encountered: