melpon / libxml Goto Github PK
View Code? Open in Web Editor NEWThin wrapper for Libxml2 using NIF by Elixir
Home Page: https://hex.pm/packages/libxml
License: MIT License
Thin wrapper for Libxml2 using NIF by Elixir
Home Page: https://hex.pm/packages/libxml
License: MIT License
Happy Tuesday!
I've been working through libxml + Heroku over the weekend and run into failing to load the NIF:
** (MatchError) no match of right hand side value: {:error, {:load_failed, 'Failed to load NIF library: \'/app/deps/libxml/priv/libxml_nif.so: undefined symbol: lzma_properties_decode\''}}
Any ideas or pointers to keep debugging would be great!
Thanks!
Hi I try to integrate libxml into a phoenix application it is not loaded.
Original issue: #3
I've fixed the other Heroku-related issues, so it's easier to debug.
The error from Heroku deployment: (Full logs here)
remote: cc -fPIC -I/app/.platform_tools/erlang/erts-9.1/include -Ipriv/libxml2/include/libxml2 -Lpriv/libxml2/lib -shared -o priv/libxml_nif.so src/libxml_nif.c priv/libxml2/lib/libxml2.a
remote: ==> libxml
remote: Compiling 10 files (.ex)
remote:
remote: 05:15:08.210 [error] Process #PID<0.149.0> raised an exception
remote: ** (MatchError) no match of right hand side value: {:error, {:load_failed, 'Failed to load NIF library: \'/tmp/build_687291de1680587ef527ea343df0e8c7/_build/prod/lib/libxml/priv/libxml_nif.so: undefined symbol: lzma_properties_decode\''}}
remote: lib/libxml/nif.ex:5: Libxml.Nif.load_nif/0
remote: (kernel) code_server.erl:1333: anonymous fn/1 in :code_server.handle_on_load/5
remote:
remote: 05:15:08.214 [warn] The on_load function for module Elixir.Libxml.Nif returned:
remote: {{:badmatch, {:error, {:load_failed, 'Failed to load NIF library: \'/tmp/build_687291de1680587ef527ea343df0e8c7/_build/prod/lib/libxml/priv/libxml_nif.so: undefined symbol: lzma_properties_decode\''}}}, [{Libxml.Nif, :load_nif, 0, [file: 'lib/libxml/nif.ex', line: 5]}, {:code_server, :"-handle_on_load/5-fun-0-", 1, [file: 'code_server.erl', line: 1333]}]}
remote:
Heroku does come with LibXML and liblzma-dev, so I'm a little unsure where to take this...
Thanks very much as always!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.