snapCloud icon indicating copy to clipboard operation
snapCloud copied to clipboard

Building on Ubuntu 22.04 Fails

Open opencoca opened this issue 3 years ago • 6 comments

Building on a fresh Ubuntu 22.04 LTS currently fails

#17 34.11 Installing https://luarocks.org/xml-1.1.3-1.src.rock
#17 36.98 Missing dependencies for xml 1.1.3-1:
#17 36.98    lub >= 1.0.3, < 2 (not installed)
#17 36.98 
#17 36.98 xml 1.1.3-1 depends on lua >= 5.1, < 5.4 (5.1-1 provided by VM)
#17 36.98 xml 1.1.3-1 depends on lub >= 1.0.3, < 2 (not installed)
#17 36.98 Installing https://luarocks.org/lub-1.1.0-1.src.rock
#17 38.64 
#17 38.64 lub 1.1.0-1 depends on lua >= 5.1, < 5.4 (5.1-1 provided by VM)
#17 38.64 lub 1.1.0-1 depends on luafilesystem >= 1.4.0 (1.8.0-1 installed)
#17 38.95 In file included from include/xml/Parser.h:33,
#17 38.95                  from src/Parser.cpp:1:
#17 38.95 src/bind/dub/dub.h:298:48: error: ISO C++17 does not allow dynamic exception specifications
#17 38.95   298 | lua_Number checknumber(lua_State *L, int narg) throw(dub::TypeException);
#17 38.95       |                                                ^~~~~

opencoca avatar Dec 17 '22 16:12 opencoca

Interestingly moving lub to be installed before snapcloud's rockspec moves past this and to another error.

luarocks install lub
luarocks install /app/snap-cloud-beta-0.rockspec

The resulting error is hit during the luaossl install

#17 28.34 snap-cloud beta-0 is pinned to luafilesystem 1.8.0-1 (1.8.0-1 installed)
#17 28.34 snap-cloud beta-0 is pinned to luaossl 20190731-0 (not installed)
#17 28.34 Installing https://luarocks.org/luaossl-20190731-0.src.rock
#17 28.34 Applying patch config.h.diff...
#17 28.34 gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/openssl.c -o src/openssl.o -D_REENTRANT -D_THREAD_SAFE -DCOMPAT53_PREFIX=luaossl -D_GNU_SOURCE -I/usr/include -I/usr/include

opencoca avatar Dec 17 '22 18:12 opencoca

So ... installing the libssl1.1 side steps this issue, but it's not officially supported by 22.04, so either downgrade to 20.04 or manually install it https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=libssl1.1&searchon=names

opencoca avatar Dec 17 '22 20:12 opencoca

This will then blow up as old-style git://github.com/bromagosa/snapCloud.git URLs are not supported by GitHub anymore... so run git config --global url."https://".insteadOf git:// before installing with luarocks install /app/snap-cloud-beta-0.rockspec

opencoca avatar Dec 17 '22 20:12 opencoca

I definitely battled with the SSL installation. I wonder if wholesale upgrading dependencies across the board would help…-- Michael BallFrom my iPhonemichaelball.coOn Dec 17, 2022, at 12:58 PM, OpenCo @.***> wrote: This will then blow up as old-style git://github.com/bromagosa/snapCloud.git URLs are not supported by GitHub anymore... so run git config --global url."https://".insteadOf git:// before installing with luarocks install /app/snap-cloud-beta-0.rockspec

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

cycomachead avatar Dec 17 '22 21:12 cycomachead

Running 'git config --global URL."https://".insteadOf git:// ' at any time in the install process makes it so all all git:// URLs are processed as https://. As I'm building a docker file for deployment and dev, this is a good quick fix we could also add to the INSTALL.md.

opencoca avatar Dec 18 '22 15:12 opencoca

With the current setup, after following the installation instructions, it is necessary to configure the SSL certificate to establish secure connections properly. We can streamline this process and maintain a clean system if we use a reverse proxy to manage SSL certificates rather than handling them directly at setup.

opencoca avatar Dec 18 '22 20:12 opencoca