r/GUIX • u/Doom4535 • Mar 24 '23
How to
I’m trying to try out Guiz in a VM (specifically VMware), and am unable to build open-vm-tools; I’m currently trying to setup a build environment using: guix shell gcc-toolchain glibc libmspack
However, when I then run ./configure, it complains about not having mspack >= 0.0.20040308alpha and when I run ldconfig -p there is no mspack in my build environment.
What is the typical build process on guix and do I need to do anything special to get it to update build environment libraries?
3
Upvotes
0
4
u/PetriciaKerman Mar 25 '23 edited Mar 25 '23
After much gnashing of teeth I was able to get this fucker to build with the following
open-vm-tools.scmYou can build with
guix build -f open-vm-tools.scmand get a dev environment withguix shell -D -f open-vm-tools.scm.That being said, I usually run my guix vm's using qemu/kvm with
guix system vm my-os.scmand I'm pretty ignorant about vmware in general.I hope this helps!
I always start by writing an scm file like above for whatever software I'm trying to build. Then I use
guix build -K -f package.scmwhich makes guix leave behind the build directory on failures (usually the configure phase fails because projects don't always do a good job at naming dependencies). Then I keep modifying that file and loading the environment withguix shell -D -f package.scmand runningmakeor./configureuntil it builds outside of the container. Then I tryguix build -f package.scmand debug any issues that pop up there.For most packages it's not so bad and the initial
guix buildworks more often than not. (not this one, this one is a bitch)edit: I figured out the magic words to use during the install phase but it's still wonky because it creates another store path inside the output and puts some more stuff in there. like /gnu/store/...-open-vm-tools/gnu/store/...-open-vm-tools/morestuff
I'll leave it as an exercise for you to debug ;)