How do I fix telegram bot api downlaod? - linux

I was trying to install telegram bot api on my ssh server and I ran into a problem.
Operating system: Debian 11, Linux
Commands which I used:
su -
apt-get update.
apt-get upgrade.
apt-get install make git zlib1g-dev libssl-dev gperf cmake g++.
exit.
git clone --recursive https://github.com/tdlib/telegram-bot-api.git.
cd telegram-bot-api.
rm -rf build.
mkdir build.
cd build.
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. ..
cmake --build . --target install
cd ../..
ls -l telegram-bot-api/bin/telegram-bot-api*
Problem:
When I was running this command "cmake --build . --target install", my downloading stopped on 33% with this message:
"[ 33%] Building CXX object td/CMakeFiles/tdapi.dir/td/generate/auto/td/telegram/td_api.cpp.o"
I've tried twice, nothing happens after this, how do I fix this?
Commands from https://tdlib.github.io/telegram-bot-api/build.html?os=Linux
I've tried to run the whole code again, but the problem was the same. I'm not into linux, thats why I'm asking here

Related

Issue Installing ninja-build for centos 7

I can successfully build ninja locally in ~/programs in CentOS7 using the following set of commands:
mkdir -p programs
cd programs
git clone https://github.com/ninja-build/ninja.git
cd ninja
git checkout release
./configure.py --bootstrap
./ninja --version
1.11.1
However, I am trying to install it system-wide but it is only recognizable in ~/programs/ninja. Shouldn't ./configure.py --bootstrap install it automatically?
How can I install it in /usr/bin/ninja?
After build ninja move it to /usr/bin
mv ./ninja /usr/bin

How to build detect it easy on ubuntu 20.04 from horsicq github?

i have cloned project from this link: https://github.com/horsicq/Detect-It-Easy
And i don't know what to do next, read.me says this commands : chmod a+x configure
./configure
make
make install
But it doesn't work . i want to check docs from command line for java project
git clone --recursive https://github.com/horsicq/DIE-engine.git "--recursive" is very important. It clones all module
chmod a+x configure It makes the file "configure" executable.
./configure "configure" checks if the system has all nessecary packages. If it fails you should install these packages.
For Ubuntu: sudo apt-get install --quiet --assume-yes build-essential qt5-default qtbase5-dev qttools5-dev-tools qtscript5-dev
make It compiles the project
sudo make install It installs the program to system

Problem with Android Studio emulator in Docker container

I have a Docker container with Android studio 3.6 and it works perfectly. The problem is that the emulator does not run because the Ubuntu machine does not have the CPU to reproduce x86. Does anyone know how to include it in the Dockerfile ?. Thank you.
This is my Dockerfile:
FROM ubuntu:16.04
RUN dpkg --add-architecture i386
RUN apt-get update
# Download specific Android Studio bundle (all packages).
RUN apt-get install -y curl unzip
RUN apt-get install -y git
RUN curl 'https://uit.fun/repo/android-studio-ide-3.6.3-linux.tar.gz' > /studio.tar.gz && \
tar -zxvf studio.tar.gz && rm /studio.tar.gz
# Install X11
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y xorg
# Install other useful tools
RUN apt-get install -y vim ant
# install Java
RUN apt-get install -y default-jdk
# Install prerequisites
RUN apt-get install -y libz1 libncurses5 libbz2-1.0:i386 libstdc++6 libbz2-1.0 lib32stdc++6 lib32z1
RUN apt-get install wget
RUN wget 'https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip' -P /tmp \
&& unzip -d /opt/android /tmp/sdk-tools-linux-4333796.zip
RUN apt install xserver-xorg-video-amdgpu
# Clean up
RUN apt-get clean
RUN apt-get purge
ENTRYPOINT [ "android-studio/bin/studio.sh" ]
When you're using ubuntu in docker, the only way to run an android emulator is to find a system image with "arm" (e.g. system-images;android-25;google_apis;armeabi-v7a).
However, even though you're able to run emulator in the container, you will probably be disappointed about that. Since emulator based on arm is typically slow enough to boot, not to mention that running in docker could be even slower.
If you really want to create it, you can do something like below.
sdkmanager "system-images;android-25;google_apis;armeabi-v7a"
avdmanager create avd -n demoTest -d "pixel" -k "system-images;android-25;google_apis;armeabi-v7a" -g "google_apis" -b "armeabi-v7a"
emulator #demoTest -no-window -no-audio -verbose &
Once you got this prompt message
emulator: got message from guest system fingerprint HAL
Your emulator is ready to go.

Can't find Makefile of editorconfig-core-c

I am trying to install editorconfig-core-c. So I followed the following tutorial:
Tutorial of editorconfig-core-c
So I needed to do:
sudo apt-get install cmake libpcre3-dev
and
make install
But in which folder is the Makefile? I didn't found anything in ~/
Does anyone have a suggestion for me?
Try running the below commands to make, install it and then remove the downloaded files. The key steps you need are
Install any prerequisites
Download the source
Run cmake . in the downloaded directory to create the makefile
Install with sudo make install
A complete set of the commands needed is provided below.
sudo apt-get install cmake libpcre3-dev git
cd
git clone https://github.com/editorconfig/editorconfig-core-c.git
cd editorconfig-core-c/
cmake .
sudo make install
cd ..
rm -rf editorconfig-core-c/

node js can't install right on my Ubuntu computer

I use the git to install node js, the method I use is below:
mkdir ~/local
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
git clone git://github.com/joyent/node.git
cd node
./configure --prefix=~/local
make install
cd ..
After this, I use node on my command line, it tell me no node.Any one can help me?
I got the method form https://gist.github.com/isaacs/579814, but can't work.
My path is here.
You have to make before you make install.
The wiki has more information about building from source.
I used NVM to install Node.js to my Ubuntu computer:
First install these packages
sudo apt-get install curl build-essential libssl-dev libxml2 libxml2-dev libexpat1-dev
Install nvm
git clone https://github.com/creationix/nvm.git ~/.nvm
To activate nvm, you need to source it from your bash shell (e.g, add to your ~/.bash_profile)
. ~/.nvm/nvm.sh
The following steps are also required when upgrading Node
Install Node (use whichever version you like, but v0.8.x works)
nvm install v0.8.23
nvm alias default v0.8.23
nvm use v0.8.23
Any issues, I would check out the NVM repo.
This is my build script for node.js on ubuntu. I don't build from the bleeding edge most recent code, but its close to your process.
sudo apt-get update
sudo apt-get -y install build-essential libssl-dev
wget http://nodejs.org/dist/latest/docs/
node_version=`grep -i 'current version' index.html | sed -E 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/'`
wget http://nodejs.org/dist/v$node_version/node-v$node_version.tar.gz
tar -xzf node-v$node_version.tar.gz
cd node-v$node_version
./configure
make
sudo make install
cd ..
rm -rf node-v$node_version.tar.gz node-v$node_version index.html

Resources