Comments (13)
You don't have enough memory on the server to build. For g++ at least 4GB of RAM are needed.
from telegram-bot-api.
You don't have enough memory on the server to build. For g++ at least 4GB of RAM are needed.
Thanks, got it
from telegram-bot-api.
OS: Ubuntu 18.04
Compiler: CLang++
Ram: 2GB
[ 75%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/MessagesDb.cpp.o
[ 75%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/MessageSearchFilter.cpp.o
[ 75%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/MessagesManager.cpp.o
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2a)[0x7fd096c630ea]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x56)[0x7fd096c61366]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(+0x81c49b)[0x7fd096c6149b]
/lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7fd095d0a040]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fd095d09fb7]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fd095d0b921]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c957)[0x7fd096148957]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92ae6)[0x7fd09614eae6]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92b21)[0x7fd09614eb21]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d54)[0x7fd09614ed54]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x932dc)[0x7fd09614f2dc]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(ZNSt8_Rb_treeIN4llvm9symbolize22SymbolizableObjectFile10SymbolDescESt4pairIKS3_NS0_9StringRefEESt10_Select1stIS7_ESt4lessIS3_ESaIS7_EE16_M_insert_uniqueIS4_IS3_S6_EEES4_ISt17_Rb_tree_iteratorIS7_EbEOT+0xb9)[0x7fd097e0f719]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize22SymbolizableObjectFile9addSymbolERKNS_6object9SymbolRefEmPNS_13DataExtractorEm+0x178)[0x7fd097e0fc68]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize22SymbolizableObjectFile6createEPNS_6object10ObjectFileESt10unique_ptrINS_9DIContextESt14default_deleteIS6_EE+0xe2)[0x7fd097e0feb2]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize14LLVMSymbolizer21getOrCreateModuleInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9StringRefE+0x288)[0x7fd097e14f08]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize14LLVMSymbolizer20symbolizeInlinedCodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmNS_9StringRefE+0x40)[0x7fd097e15870]
llvm-symbolizer(+0x41e1)[0x5609156c81e1]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fd095cecbf7]
llvm-symbolizer(+0x5e1a)[0x5609156c9e1a]
Stack dump:
0. Program arguments: llvm-symbolizer --functions=linkage --inlining --demangle
^Ctd/CMakeFiles/tdcore.dir/build.make:2150: recipe for target 'td/CMakeFiles/tdcore.dir/td/telegram/MessagesManager.cpp.o' failed
make[2]: *** [td/CMakeFiles/tdcore.dir/td/telegram/MessagesManager.cpp.o] Interrupt
CMakeFiles/Makefile2:323: recipe for target 'td/CMakeFiles/tdcore.dir/all' failed
make[1]: *** [td/CMakeFiles/tdcore.dir/all] Interrupt
Makefile:129: recipe for target 'all' failed
make: *** [all] Interrupt
Would it be possibile to build it on another system (4GB Ram - Ubuntu 18.04) and then shift it to my system?
from telegram-bot-api.
@Nickelza Yes, it would be possible if you install compatible OpenSSL and zlib on both systems.
from telegram-bot-api.
@Nickelza Yes, it would be possible if you install compatible OpenSSL and zlib on both systems.
I transferred the telegram-bot-api folder from the system of which I built to mine (same OS, OpenSSL and Zlib version). I then copied the telegram-bot-api file from the build folder to/bin, /usr/bin and /usr/bin/local but telegram-bot-api command is still not recognized, while on the system I built it it's working. Any ideas please?
from telegram-bot-api.
Did you turn on the executable bit of the telegram-bot-api
executable file after copying it?
from telegram-bot-api.
Yes I did
sudo chmod +x telegram-bot-api
Then ran it with ./telegram-bot-api
Il displays the command list, but still doesn't work if invoked via "telegram-bot-api" only.
from telegram-bot-api.
Run which telegram-bot-api
.
from telegram-bot-api.
Run
which telegram-bot-api
.
No response
from telegram-bot-api.
What is result of ls -l /bin/telegram-bot-api /usr/bin/telegram-bot-api /usr/bin/local/telegram-bot-api /usr/local/bin/telegram-bot-api
?
from telegram-bot-api.
What is result of
ls -l /bin/telegram-bot-api /usr/bin/telegram-bot-api /usr/bin/local/telegram-bot-api /usr/local/bin/telegram-bot-api?
ls: cannot access '/usr/bin/local/telegram-bot-api': No such file or directory
-rw-r--r-- 1 root root 29422624 Nov 4 20:50 /bin/telegram-bot-api
-rw-r--r-- 1 root root 29422624 Nov 4 20:50 /usr/bin/telegram-bot-api
-rw-r--r-- 1 nick root 29422624 Nov 4 20:50 /usr/local/bin/telegram-bot-api
from telegram-bot-api.
The files don't have executable bit.
from telegram-bot-api.
I've created the executable bit for each of the files, now seems to be working. Thanks a lot!
from telegram-bot-api.
Related Issues (20)
- Tgram.api
- http proxy does not work! HOT 1
- Message entities are not preserved by `editMessageText` and `editMessageMedia` HOT 2
- Request: Add Possibility for bot to publish/maintain stories in Channels
- NOT: User.language_code described at IETF but only being used as ISO-639? HOT 3
- How should I apply for the API HOT 4
- How can I be sure that Telegram BOT API local server is running properly? HOT 4
- Blockquote HTML syntax issues HOT 1
- pending_update_counts delay HOT 15
- get 404 error on download file! HOT 11
- Bot latency HOT 6
- Failed to forward message: 'Bad Request: message thread not found' HOT 7
- Persistent "ERROR" When Creating Telegram Application HOT 6
- Change the maximum upload size HOT 1
- not able to set more webhooks! HOT 9
- Too few replies to incoming private messages. Conversion is 0% HOT 1
- [ASK] Why not found method getinvoicelink ? HOT 4
- Reactions order in MessageReactionUpdated is not preserved? HOT 3
- message_reaction treats supergroup itselfs reaction as from private chat HOT 2
- Rouse
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 telegram-bot-api.