Can not start Android emulator - android-emulator

Android emulator starts and dies after seconds. In error log I get following error message:
Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
I found following solution
$ cd Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6
but in my lib64 folder I do not have the file libstdc++.so.6 which i could change to .bak

Related

I got this Error when i try to install reNgine, any Suggest?

when I try to install reNgine recon tool, it always stops at (32/51) and gives me this error, I tried searching for it but no luck
failed to solve: executor failed running [/bin/sh -c GO111MODULE=on go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei#latest]: exit code: 2
make: *** [Makefile:22: up] Error 17
I tried to run
GO111MODULE=on go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei#latest
and reinstall it but the same Error pops up

Perlbrew fails to install new perl version

I'm attempting to install a new perl version with perlbrew:
perlbrew install perl-5.34.1
but this produces the error:
Fetching perl 5.34.1 as /home/703404669/perl5/perlbrew/dists/perl-5.34.1.tar.gz
Download https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.34.1.tar.gz to /home/703404669/perl5/perlbrew/dists/perl-5.34.1.tar.gz
ERROR: Failed to download https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.34.1.tar.gz
ERROR: Failed to execute the command
curl --silent --location --fail -o /home/703404669/perl5/perlbrew/dists/perl-5.34.1.tar.gz https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.34.1.tar.gz
Reason:
5888
which I'm unable to find on Google searches.
I know that there isn't any typo, because when I intentionally write something wrong, I get a different error.
I have no idea why this is happening, nor to fix it.
EDIT:
the command
curl --location https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.34.1.tar.gz > /dev/null
outputs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17.3M 100 17.3M 0 0 68.5M 0 --:--:-- --:--:-- --:--:-- 68.5M
How can I install a perl version with perlbrew?
5888 is 0x1700. This could be $? for a program that used exit(0x17), which is to say exit(23). curl uses that exit code when
23 Write error. Curl couldn't write data to a local filesystem or similar.
Sounds like it can't write to /home/703404669/perl5/perlbrew/dists/perl-5.34.1.tar.gz.
If the directory doesn't exist, maybe you didn't properly install perlbrew.
Ways to install perlbrew:
\curl -L https://install.perlbrew.pl | bash
\wget -O - https://install.perlbrew.pl | bash
\fetch -o- https://install.perlbrew.pl | sh
sudo cpan App::perlbrew
perlbrew init
You also need to place a command in your shell's interactive startup script as instructed.
Or maybe you don't have enough disk space. Did you mean to install perlbrew somewhere other than /home/703404669/perl5/perlbrew?
The default perlbrew root directory is ~/perl5/perlbrew, which can be changed by setting PERLBREW_ROOT environment variable before the installation and initialization.
In my case the problem was that it would not create the destination folder for that download. So what fixed it for me was:
mkdir $HOME/perl5/perlbrew/dists -p
In the above case just:
mkdir -p /home/703404669/perl5/perlbrew/dists

strawberry perl on windows install Prima failed with no tiff.h

I use strawberry perl on windows. I tried to install Prima module, running
install Prima
in CPAN console, I got
> img\codec_tiff.c:14:10: fatal error: tiff.h: No such file or directory
> #include <tiff.h>
> ^~~~~~~~ compilation terminated. dmake.exe: Error code 129, while making 'img\codec_tiff.o' KARASIK/Prima-1.53.tar.gz
> C:\STRAWB~1\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for
> 'Prima'. Failed during this command: KARASIK/Prima-1.53.tar.gz
> : make NO
so finally it failed to install Prima. So what to fix missing tiff.h problem?
update
Now I reinstalled the latest strawberry perl version 5.28.1.1
However, installing Prima failed for another reason. Error message as below:
dlltool -l blib/arch/auto/Prima/libPrima.a -d Prima.def -D PRIMA.xs.dll blib\arch\auto\Prima\Prima.xs.dll
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 755 blib\arch\auto\Prima\Prima.xs.dll
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- Prima/VB/VB.pl blib\script\VB.pl
pl2bat.bat blib\script\VB.pl
process_begin: CreateProcess(NULL, pl2bat.bat blib\script\VB.pl, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [Makefile:1165: blib\script\VB.pl] Error 2
KARASIK/Prima-1.53.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- NOT OK
Stopping: 'install' failed for 'Prima'.
Failed during this command:
KARASIK/Prima-1.53.tar.gz : make NO
And if I run install Prima the second time, it shows
Running install for module 'Prima'
KARASIK/Prima-1.53.tar.gz
Has already been unwrapped into directory C:\STRAWB~1\cpan\build\Prima-1.53-0
KARASIK/Prima-1.53.tar.gz
Has already been prepared
KARASIK/Prima-1.53.tar.gz
Could not make: Unknown error
What should I do?

Problems with LTTng-modules-2.8 on RaspberryPi

I'm using a RaspberryPi Zero W with Raspbian 4.9.80+ and I'm trying to install LTTng-modules-2.8 but when I type these commands
wget http://lttng.org/files/lttng-modules/lttng-modules-latest-
2.8.tar.bz2 &&
tar -xf lttng-modules-latest-2.8.tar.bz2 &&
cd lttng-modules-2.8.* &&
make &&
sudo make modules_install &&
sudo depmod -a
I receive this (after typing the command "make"):
make -C /lib/modules/4.9.80+/build M=/home/pi/lttng-modules-2.8.7
CONFIG_LTTNG=m
CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m modules
make[1]: *** /lib/modules/4.9.80+/build: No such file or directory. Stop.
Makefile:110: receipe for target 'modules' failed
make: *** [modules] Error 2
I downloaded the modules correctly but it seems that they are not there; how can I solve this problem?
Thanks, Ivan.
You need the kernel headers to build modules, according to raspbian's documentation they are provided by the raspberrypi-kernel-headers, you can install it with this command :
sudo apt-get install raspberrypi-kernel-headers
And then run the make commands.

Rooting android emulator - Error?

I have to root android emulator. I've found some articles, but I've got the same error every time! It's 'cannot create su: not enough memory'!
What I did:
1. adb push su /data/local
2. adb shell
3. #su
4. #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
5. # cd /system/xbin
6. # mv su osu
7. # cat /data/local/su > su // I've got an error!!!
//Cannot create su: Out of memory!
What do I wrong?
I've got answer on my question!
I must run an android emulator with -partition-size 128 option.
It should look like below:
android-sdk-windows\tools\emulator -avd MyAndroidVirtualDeviceName -partition-size 128
After that I can root my emulator.
Looks like /system/xbin is not rw.
The fact that mount -o remount,rw does not return errors doesn't mean that it succeeded.
Check what mount reports for /system after the remount.
Also, see if you have proper permissions to write there.