Permission denied during "cargo build" - rust

I tried
cargo build --target wasm32-unknown-unknown --release
to build the rust-counter-tutorial, and I get the error
error: failed to open: /home/[...]/target/release/.cargo.lock
Caused by:
Permission denied (os error 13)
I'm very new to coding so bear with me.
I am on WSL Ubuntu 18.04

Related

Installing GCC?

I am trying to install GCC (most importantly, the g++ compiler) on an Ubuntu machine where I don't have 1) sudo permissions or 2) apt access (any apt command gives the error Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)).
I was able to successfully make the uncompressed archive that I downloaded from an official GNU GCC mirror site, but make install failed with the following error:
mkdir: cannot create directory ‘/usr/libexec’: Permission denied
Makefile:181: recipe for target 'install' failed
Any ideas for how to get a copy of g++ 6.0 or higher? Is there a pre-compiled binary I can download from anywhere?. I also don't have a user interface (this is a remote machine I am SSHing into), so a direct link to a file would be greatly appreciated.

Getting error during Jenkins build "fatal error: opensslconf-i386.h"

Jenkins pipeline fails with the below error while running in Rhel 7.9 worker node
/usr/include/openssl/opensslconf.h:13:30: fatal error: opensslconf-i386.h: No such file or directory #include "opensslconf-i386.h"
I tried to install libssl-dev:i386 on Rhel 7.9 but I am getting an error "No package libssl-dev:i386 available"
This is the commands that was executed in the pipeline
sudo make package ARCH=linux_32
installed openssl-devel.i686 and the error got resolved
yum install openssl-devel.i686

rpmbuild failing in repo with 'error=13, permission denied' in maven build

little issue here..
in ~/user/work_dir/config-service (<-bitbucket repo clone) & run sudo mvn clean install
error;
[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.5:attached-rpm (generate-rpm) on project config-service: Unable to build the RPM: Error while executing process. Cannot run program "rpmbuild" (in directory "/home/ec2-user/work_dir/config-service/target/rpm/config-service/SPECS"): error=13, Permission denied -> [Help 1]
today I sudo yum install rpm-build & it looks like it installed okay.
I added PATH=$PATH:/usr/bin/rpm thinking maybe that might be the issue..
any guesses or advice please? . . . .thank you everyone

Flutter Linux build error when executing flutter run -d linux

Flutter doctor did not show any issues. What could be wrong?
executing: flutter run -d linux
Shows the following:
CMake Error at /snap/flutter/81/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"/snap/flutter/current/usr/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/work/AndroidStudioProjects/myapp/build/linux/x64/debug/CMakeFiles/CMakeTmp
Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_0475b"
[1/2] Building CXX object CMakeFiles/cmTC_0475b.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_0475b
FAILED: cmTC_0475b
: && /snap/flutter/current/usr/bin/clang++ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ CMakeFiles/cmTC_0475b.dir/testCXXCompiler.cxx.o -o cmTC_0475b && :
/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgcrypt.so: undefined reference to `gpgrt_get_syscall_clamp#GPG_ERROR_1.0'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project)
In Linux Mint 20.2 Cinnamon with Flutter 2.5.2 and snap 2.51.7
I fixed by doing
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
flutter clean
flutter run -d linux
There is an issue with snap version of Flutter (https://snapcraft.io/flutter) April 15th 2021 release.
The solution is to do a manual install (https://flutter.dev/docs/get-started/install/linux#install-flutter-manually)
I had the same issue on ubuntu 22.04 use the flutter documentation for building and releasing linux app and install snapcraft here https://docs.flutter.dev/deployment/linux

Monax installation error

I am trying to install monax on Ubuntu from this link: https://monax.io/docs/getting-started/
When I execute monax init I am getting error that says monax:command not found.
I have installed docker and downloaded monax.

Resources