Re: [lxc-users] lxc build failure
On 08/13/2018 04:53 AM, Stéphane Graber wrote: The way you invoked sudo will strip your LD_LIBRARY_PATH causing that error. You can instead run "sudo -E -s" and then run "lxd --group sudo" and it should then start fine. Thank you : it starts ! ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On Sun, Aug 12, 2018 at 07:46:40PM +0200, Pierre Couderc wrote: > > On 08/12/2018 07:33 PM, Pierre Couderc wrote: > > > > > > On 08/12/2018 05:07 PM, Stéphane Graber wrote: > > > . > > > > > Thank you Stéphane, it builds on Debian 9.5, Now, I shall install it ! > But it fails to start with : > nous@couderc:~/go/src/github.com/lxc/lxd$ sudo -E $GOPATH/bin/lxd --group > sudo > /home/nous/go/bin/lxd: error while loading shared libraries: libdqlite.so.0: > cannot open shared object file: No such file or directory The way you invoked sudo will strip your LD_LIBRARY_PATH causing that error. You can instead run "sudo -E -s" and then run "lxd --group sudo" and it should then start fine. -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: PGP signature ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On 08/12/2018 07:33 PM, Pierre Couderc wrote: On 08/12/2018 05:07 PM, Stéphane Graber wrote: . Thank you Stéphane, it builds on Debian 9.5, Now, I shall install it ! But it fails to start with : nous@couderc:~/go/src/github.com/lxc/lxd$ sudo -E $GOPATH/bin/lxd --group sudo /home/nous/go/bin/lxd: error while loading shared libraries: libdqlite.so.0: cannot open shared object file: No such file or directory ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On 08/12/2018 05:07 PM, Stéphane Graber wrote: On Sun, Aug 12, 2018 at 09:09:41AM +0200, Pierre Couderc wrote: Install libcap-dev, that should provide that header. I'll look at updating the dependencies (external to Go anyway). Thank you Stéphane, it builds on Debian 9.5, Now, I shall install it ! ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On Sun, Aug 12, 2018 at 09:09:41AM +0200, Pierre Couderc wrote: > > > On 08/11/2018 11:45 PM, Stéphane Graber wrote: > > > > https://github.com/lxc/lxd/pull/4908 will take care of the > > PKG_CONFIG_PATH problem. With that I can build fine without > > libsqlite3-dev on my system. > Merci pour la réaction du samedi soir... > > I had too to install libuv1-dev. I suggest updating the requirements in > https://github.com/lxc/lxd/blob/master/README.md > > I have progressed but I am blocked (on debian 9.5) now by : > > shared/idmap/shift_linux.go:23:28: fatal error: sys/capability.h: No such > file or directory > #include Install libcap-dev, that should provide that header. I'll look at updating the dependencies (external to Go anyway). > > I have tried (without knowing nothing of what is it) : > > sudo ln -s /usr/include/linux/capability.h /usr/include/sys/capability.h > > but it is not better : unknown type name 'uint32_t'... > > > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: PGP signature ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On 08/11/2018 05:07 PM, Fajar A. Nugraha wrote: I believe the script basically needs this file: /usr/lib/pkgconfig/sqlite.pc On ubuntu 18.04, it's provided by libsqlite0-dev. If you install sqlite manually from source (e.g. you have it on /usr/local/lib/pkgconfig/sqlite.pc), you could probably do something like "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" (or wherever the file is located) before building lxc. Sorry, it should be "/usr/lib/x86_64-linux-gnu/pkgconfig/sqlite3.pc" and "libsqlite3-dev" on Ubuntu 18.04 Thank you very much, Fajar, you are right. Except that lxd seems to use more recent version or maybe a custom version of sqlite3. But the patch of Stéphane did the job... ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On 08/11/2018 11:45 PM, Stéphane Graber wrote: https://github.com/lxc/lxd/pull/4908 will take care of the PKG_CONFIG_PATH problem. With that I can build fine without libsqlite3-dev on my system. Merci pour la réaction du samedi soir... I had too to install libuv1-dev. I suggest updating the requirements in https://github.com/lxc/lxd/blob/master/README.md I have progressed but I am blocked (on debian 9.5) now by : shared/idmap/shift_linux.go:23:28: fatal error: sys/capability.h: No such file or directory #include I have tried (without knowing nothing of what is it) : sudo ln -s /usr/include/linux/capability.h /usr/include/sys/capability.h but it is not better : unknown type name 'uint32_t'... ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On Sat, Aug 11, 2018 at 08:37:04AM +0200, Pierre Couderc wrote: > Trying to build lxd from sources, I get a message about sqlite3 missing, and > an invite to "make deps". > > But it fails too with : > > > No package 'sqlite3' found https://github.com/lxc/lxd/pull/4908 will take care of the PKG_CONFIG_PATH problem. With that I can build fine without libsqlite3-dev on my system. > > Consider adjusting the PKG_CONFIG_PATH environment variable if you > installed software in a non-standard prefix. > > Alternatively, you may set the environment variables sqlite_CFLAGS > and sqlite_LIBS to avoid the need to call pkg-config. > See the pkg-config man page for more details > > > And the man pkg-config is not clear to me... > > Thanks for help. > > > PC > > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: PGP signature ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On 08/11/2018 05:50 PM, Andrey Repin wrote: Enable source repos. Please explain me better. At my knowledge, lxd is not available under stretch... which source repos are you speaking of ? Run apt-get source apt-get build-dep ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
Greetings, Pierre Couderc! > Thank you very much, Andrey ! >> What OS(distribution) you are using? > Debian stretch Then why the hell you're building anything? > And I have used : > https://github.com/AlbanVidal/make-deb-lxd/blob/master/00_install_required_packages.sh Forget this shit exists. Enable source repos. Run apt-get source apt-get build-dep >> Did you install sqlite3 developer package? >> >> > In fact, I do not even understand why sqlit3 is required. I do not > intend to install test tools > sqlite3 is not indicated here : https://github.com/lxc/lxd/ SQLite is used for LXD configuration storage, I recall. -- With best regards, Andrey Repin Saturday, August 11, 2018 18:45:31 Sorry for my terrible english... ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On 08/11/2018 03:36 PM, Andrey Repin wrote: Greetings, Pierre Couderc! Thank you very much, Andrey ! What OS(distribution) you are using? Debian stretch And I have used : https://github.com/AlbanVidal/make-deb-lxd/blob/master/00_install_required_packages.sh Did you install sqlite3 developer package? In fact, I do not even understand why sqlit3 is required. I do not intend to install test tools sqlite3 is not indicated here : https://github.com/lxc/lxd/ ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On Sat, Aug 11, 2018 at 10:05 PM, Fajar A. Nugraha wrote: > On Sat, Aug 11, 2018 at 1:37 PM, Pierre Couderc wrote: > >> Trying to build lxd from sources, I get a message about sqlite3 missing, >> and an invite to "make deps". >> >> But it fails too with : >> >> >> No package 'sqlite3' found >> >> Consider adjusting the PKG_CONFIG_PATH environment variable if you >> installed software in a non-standard prefix. >> >> Alternatively, you may set the environment variables sqlite_CFLAGS >> and sqlite_LIBS to avoid the need to call pkg-config. >> See the pkg-config man page for more details >> >> >> And the man pkg-config is not clear to me... >> >> > I believe the script basically needs this file: > /usr/lib/pkgconfig/sqlite.pc > > On ubuntu 18.04, it's provided by libsqlite0-dev. > > If you install sqlite manually from source (e.g. you have it on > /usr/local/lib/pkgconfig/sqlite.pc), you could probably do something like > "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" (or wherever the file > is located) before building lxc. > > Sorry, it should be "/usr/lib/x86_64-linux-gnu/pkgconfig/sqlite3.pc" and "libsqlite3-dev" on Ubuntu 18.04 -- Fajar ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
On Sat, Aug 11, 2018 at 1:37 PM, Pierre Couderc wrote: > Trying to build lxd from sources, I get a message about sqlite3 missing, > and an invite to "make deps". > > But it fails too with : > > > No package 'sqlite3' found > > Consider adjusting the PKG_CONFIG_PATH environment variable if you > installed software in a non-standard prefix. > > Alternatively, you may set the environment variables sqlite_CFLAGS > and sqlite_LIBS to avoid the need to call pkg-config. > See the pkg-config man page for more details > > > And the man pkg-config is not clear to me... > > I believe the script basically needs this file: /usr/lib/pkgconfig/sqlite.pc On ubuntu 18.04, it's provided by libsqlite0-dev. If you install sqlite manually from source (e.g. you have it on /usr/local/lib/pkgconfig/sqlite.pc), you could probably do something like "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" (or wherever the file is located) before building lxc. -- Fajar ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] lxc build failure
Greetings, Pierre Couderc! > Trying to build lxd from sources, I get a message about sqlite3 missing, > and an invite to "make deps". > But it fails too with : > No package 'sqlite3' found What OS(distribution) you are using? Did you install sqlite3 developer package? > Consider adjusting the PKG_CONFIG_PATH environment variable if you > installed software in a non-standard prefix. > Alternatively, you may set the environment variables sqlite_CFLAGS > and sqlite_LIBS to avoid the need to call pkg-config. > See the pkg-config man page for more details > And the man pkg-config is not clear to me... > Thanks for help. -- With best regards, Andrey Repin Saturday, August 11, 2018 16:36:20 Sorry for my terrible english... ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users