rustc --version = rustc 1.60.0 (7737e0b5c 2022-04-04)
solana --version = solana-cli 1.10.8 (src:623ac656; feat:1122441720)
npm --version = 8.5.1
node --version = v12.22.9
os: ubuntu 22.04 lts
after i run: "npm run build:program-rust" i am getting this error.
/home/[user]/.rustup/toolchains/bpf/bin/cargo: error while loading
shared libraries:libssl.so.1.1: cannot open shared object file: No
such file or directory
same problem with anchor.
i have located libssl0.1.1 there will it help me?
Even though you have the shared object on your system, cargo build-bpf is probably not finding it since it isn't in a standard path. You can try the solutions at How to I tell Rust where to look for a static library? to tell the linker where to find the library.
yes, cargo wasn't in a standard path.
and fixed everything by reinstalling Linux.
it was Ubuntu for testing.
actually moved to Debian reinstalled packages and working properly.
Related
I am trying to install unixodbc on linux (clean install of ubuntu 20), but the directions here are not working for me. When I get the step to ./configure , I get an error saying "configure: error: odbc_config not found (required for unixODBC build)".
Given that this is a popular package and the instructions on the main website don't work, I'm wondering if someone in that community could help me install it?
I tried installing it directly from a .deb file which appeared to work with 0 exit status, but I am still getting an error when I try to run odbc_config, which is how they say to verify the installation. And which unixodbc returns nothing.
Any help installing this package on linux would be greatly appreciated!
Note: On mac, brew install unixodbc works just fine. But I am running into problems when using the compiled binaries from that installation on a linux machine -- it is giving me a mysterious file not found error when I try to reference it, even though it is there, so I believe I need to compile it on linux in order to get it to work.
EDIT: I tried installing from source, but then I got a different error: libpq library version = 9.2 is required. Is there any way to install this package on ubuntu without having to set all kinds of special flags?
EDIT2: I was able to get the installation process to complete after installing libpq-dev.
Issue
When installing mingw on a fresh MSYS2 instance I run into the issue of gcc not found:
$ g++
bash: g++: command not found
Setup
Fresh MSYS2 install on relatively clean windows 10 install:
pacman -Syu
pacman -Su
pacman -S make
pacman -S mingw-w64-x86_64-gcc
Diagnostics
It appears that GCC is successfully installed into the directory /mingw64/bin
Yet my path consists of
/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:
As such gcc is not found.
I have tried adding /mingw64/bin to the $PATH however this seems like a temporary fix of an underlying problem.
My question specifically is, is there any reason as to why either the mingw is not installed into the /usr/bin/ directory or the installation did not add itself to the path, and or any simple reason as to what is causing this.
Thanks in advance!
Since you installed mingw-w64-x86_64-gcc it seems like you want to compile 64-bit native Windows applications. Therefore, you should start MSYS2 by running mingw64.exe, found at the top level of your MSYS2 installation. That will put /mingw64/bin/ on your PATH and set some other useful environment variables.
Solution
I have found simply adding C:\msys64\mingw64\bin to the host windows computers PATH variable this, in turn, adds \mingw64\bin to the MSYS2 $PATH solving the problem.
I got error when i install dtrace-provider on my labtop.
My environment is windows 10 sub linux system on Ubuntu 18.04 LTS, and i am using zsh.
Dose anyone know how to fix this?
I have been run as administrator for this Windows Terminal(Preview) version.
There is no prebuild binary provided for the platform + node version combo, it retreats back to building from source with node-gyp, which then throws an error because make binary is not found. make is required for building from source from what the source looks like
solution: install make and all the requirements for this lib
https://github.com/chrisa/node-dtrace-provider#troubleshooting-build-issues
I installed Rust using rustup, but when I try to enter a Rust command like cargo or rustc in my console, the following error appears:
error: no default toolchain configured
Is this a known issue?
If it seems that rustup did not successfully install and configure the stable toolchain, you can do it manually:
rustup install stable
rustup default stable
After testing, it seems like my incomplete installation may have been caused by a network error. You can also try to reinstall to solve the problem.
The problem is due to my connection and my proxy which didn't allow rustc, cargo, and others to be downloaded.
I thought that the all the executables were all-in-one but apparently not.
In my case, I had multirust installed and the following worked for me:
multirust install stable
multirust default stable
I installed rust with root, but my IDE doesn't run as root, so I installed rust without root, all worked well.
I am new to Ubuntu (linux).
I installed node.js for a project.
Recently I am getting this error on npm install.
Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
I found a stack link below as
Node pre error
Under the solution it asks for the directory where node.js is installed and currently i am clueless where the nodejs is installed.
Please help me on how can I locate the directory where node.js is installed.
Quick explanation
You have a version with -pre. Get rid of it and put the latest stable version from nodejs.org.
You can use which to locate a command. For your case, type which nodejs.
EDIT: The answer from your link is referring to the path of node source code, not the nodejs binary.
On Ubuntu, most software can be installed from the built-in repositories. This updates it for you (even if it's sometimes a bit outdated).
To install the stable version the Ubuntu way, install the nodejs-legacy package (after uninstalling your version):
sudo apt install nodejs-legacy
To use the latest, refer to https://askubuntu.com/a/663052/438156 (my answer), or https://askubuntu.com/a/711976/438156 (bit more involved, more the Ubuntu way).