Comments (3)
Thanks for the quick response and the suggestion. The output of that is
Error: Command failed: ldd libtdjson.so
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:552:15)
at maybeClose (node:internal/child_process:1093:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:552:15)
at Pipe.<anonymous> (node:net:757:14)
at Pipe.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 1,
killed: false,
signal: null,
cmd: 'ldd libtdjson.so'
} not a dynamic executable
After seeing this message, I was able to identify and fix the issue. Documenting the details here for others' reference.
Google Cloud Functions execution environment for nodejs16 runtime is Ubuntu 18.04, but prebuilt-tdlib
is built against Ubuntu 20.04. So I spinned up a Ubuntu 18.04 docker to build tdlib
myself. The problem is that I'm using an M2 Mac (Apple Silicon), so the object is actually built with ARM aarch64
architecture.
$ file libtdjson.so
libtdjson.so: ELF 64-bit LSB shared object, **ARM aarch64**, version 1 (SYSV), dynamically linked, not stripped
I ended up creating a repo and built the tdlibjson.so
object with Github Workflow with steps borrowed from here. And the shared object built from this process can be successfully used to create a TDLib
instance on Google Cloud Functions.
from tdl.
Hi! Try to execute ldd ./build/src/libtdjson.so.1.8.6
, for example: require('child_process').exec('ldd ./build/src/libtdjson.so.1.8.6', (err, stdout, stderr) => console.log(err, stdout, stderr))
from tdl.
bew install tdlib - fixed all my problems with it
from tdl.
Related Issues (20)
- Unknown class "uploadFile" HOT 4
- Clients count HOT 1
- [Question] Event list ? HOT 5
- process is not defined ReferenceError: process is not defined HOT 2
- A utility to install types for arbitrary TDLib version HOT 1
- Unable to auth with prebuilt-tdlib with in Docker container HOT 5
- Slow response after creating multiple clients HOT 3
- Can't build Docker container with tdl included HOT 2
- Authorization using tdata HOT 1
- Failed to load 'td_json_client_create': Symbol not found: node_register_module_v115 HOT 2
- "Inline keyboard expected" when using keyboardButtonTypeRequestUser in reply markup HOT 2
- strange error HOT 15
- Example with client.login taking ()=>LoginDetails? HOT 1
- Publish fresh `prebuilt-tdlib` please HOT 1
- How to debug stopped process? HOT 1
- How can I use multiple clients? HOT 4
- [Help needed] I can't find the tdjson.dll for Windows HOT 3
- When relogin cant get auth code HOT 2
- When send voicenote with own client official desktop telegram shows it strange HOT 1
- How to click to an inline button HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdl.