Skip to content
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

Building on Ubuntu 22.04 Fails #320

Open
opencoca opened this issue Dec 17, 2022 · 6 comments
Open

Building on Ubuntu 22.04 Fails #320

opencoca opened this issue Dec 17, 2022 · 6 comments

Comments

@opencoca
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

@cycomachead
Copy link
Member

cycomachead commented Dec 17, 2022 via email

@opencoca
Copy link
Author

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
Copy link
Author

opencoca commented Dec 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants