I cannot install mssql-server - sql

I cannot install mssql-server, because I have a newer version of libldap-2.6.0-2.
makepkg -sirc  ✔
==> Making package: mssql-server 15.0.4188.2-3 (24 ينا, 2022 02:49:39 م)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: libldap<=2.4.59
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> libldap<=2.4.59
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
error: failed to prepare transaction (could not satisfy dependencies)
When I try to remove libldap-2.6.0-2. I got this error message:
:: removing libldap breaks dependency 'libldap' required by krb5
:: removing libldap breaks dependency 'libldap' required by lib32-libldap
:: removing libldap breaks dependency 'libldap' required by nfsidmap
:: removing libldap breaks dependency 'libldap' required by smbclient
:: removing libldap breaks dependency 'libldap' required by sudo

You have to install libldap24:
Here is the Arch Linux User Repository
Every time you have missing dependencies you can install them by yourself.

Related

lpdf luarocks dependency installation external dependency error

I want to use lpdf dependency in the luarocks. When I am trying to install it using rockspec file following error has occurred .
lpdf - https://luarocks.org/modules/tomasguisasola/lpdf/20130702.51-1
Error: Failed installing dependency: https://luarocks.org/lpdf-20130702.51-1.src.rock
- Could not find header file for PDFLIB
No file pdflib.h in /usr/local/include
No file pdflib.h in /usr/include
No file pdflib.h in /include
You may have to install PDFLIB in your system and/or pass PDFLIB_DIR or PDFLIB_INCDIR
to the luarocks command.
Example: luarocks install lpdf PDFLIB_DIR=/usr/local
Makefile:110: recipe for target 'install' failed
make: *** [install] Error 1
I want to install in on a docker container. Can anyone share an idea on this?

How to resolve yarn warnings

I created a new project with the vue cli.
This project is a Vue3 with Ant Design, Vue Router and Eslint.
However when I give the yarn command it shows me the following warnings.
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#2.3.2: The platform "win32" is incompatible with this module.
info "fsevents#2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "win32" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "#vue/eslint-config-airbnb > eslint-import-resolver-webpack#0.13.0" has unmet peer dependency "webpack#>=1.11.0".
warning " > less-loader#7.3.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
[4/4] Building fresh packages...
Done in 26.91s.
The webpack I noticed is already installed directly on vue 3. How do I resolve these warnings?
for fsevents it seems that it's a MacOS-only library so that might explain why you got the first error.
for peer dependencies and webpack if you are using Yarn it seems that you have to do yarn add webpack --peer or as #kaumadie said in a comment you can also add it directly on the package.json file of your project
With npm, you can do npm i directly in the project's folder and it should resolve all peer dependencies automatically
Hope it helped you, and have a good day !

ENOSYS: function not implemented

I recently install next js use to npm in raspi 4 with the raspbian operating system. Every time when I install react js, next js, and gatsby show me the same error.
At this time I install nextjs use yarn. also, I use npm and npx to show the same error. so I started to find a solution then somebody told me to use sudo so I use sudo but doesn't work
sudo yarn create next-app
check my code error output
pi#raspberrypi:/media/pi/8243-BE00/next $ sudo yarn create next-app
yarn create v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-next-app#10.0.5" with binaries:
- create-next-app
✔ What is your project named? … myapp
Creating a new Next.js app in /media/pi/8243-BE00/next/myapp.
Installing react, react-dom, and next using yarn...
yarn add v1.22.10
info No lockfile found.
[1/4] Resolving packages...
warning next > chokidar > fsevents#2.1.3: "Please update to latest v2.3 or v2.2"
warning next > webpack > watchpack > watchpack-chokidar2 > chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning next > webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning next > resolve-url-loader > rework > css > urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
warning next > resolve-url-loader > rework > css > source-map-resolve > urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
warning next > resolve-url-loader > rework > css > source-map-resolve > resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
[2/4] Fetching packages...
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.3.1: The platform "linux" is incompatible with this module.
info "fsevents#2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
error An unexpected error occurred: "ENOSYS: function not implemented, symlink '../../../../terser/bin/terser' -> '/media/pi/8243-BE00/next/myapp/node_modules/#ampproject/toolbox-optimizer/node_modules/.bin/terser'".
info If you think this is a bug, please open a bug report with the information provided in "/media/pi/8243-BE00/next/myapp/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
yarnpkg add --exact react react-dom next --cwd /media/pi/8243-BE00/next/myapp has failed.
Done in 293.09s.
pi#raspberrypi:/media/pi/8243-BE00/next $
You can try this next:
Remove yarn.lock.
Remove node_modules.
Use the --ignore-optional FLAG (yarn --ignore-optional); these don’t install optional dependencies.
The fsevents package is for macOS only; you don't need it in Linux.
If any of that works you can remove ignore and see if .yarnclean works.
Based on the log, looks like script is not able to create symbolic link
"ENOSYS: function not implemented, symlink '../../../../terser/bin/terser' -> '/media/pi/8243-BE00/next/myapp/node_modules/#ampproject/toolbox-optimizer/node_modules/.bin/terser'".
What is the file system you are using? I know exFAT and FAT32 don't support symbolic link.
Reference: https://learn.microsoft.com/en-us/windows/win32/fileio/filesystem-functionality-comparison

How to fix sentry-related yarn error: ENOENT: no such file or directory, scandir '.../src/native/node_modules/#sentry'

I'm attempting to install new packages in my react-native project via yarn but am caught up by the above error message.
I've installed react-native-sentry via npm rather than yarn. Any attempt to uninstall and unlink from the rest of the project doesn't help. No other suggestions posted (https://github.com/getsentry/sentry-electron/issues/94) have gotten me past this first error. Any subsequent attempt to build in Xcode after this initial yarn error gives me tons more errors.
My (truncated) src/native/package.json:
{
"name": "native",
.
.
.
"workspaces": {
"nohoist": ["#sentry", "#sentry/**"]
},
.
.
.
},
"dependencies": {
.
.
.
"react-native-sentry": "^0.39.0",
The initial error:
$ yarn
yarn install v1.16.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > [XXXX].shared-components#1.0.0" has unmet peer dependency "react#^16.5.0".
warning "workspace-aggregator-ad0ee18a-71f6-4b7e-ae5b-7d9c0089e4da > hydrated-oauth-redux > #callstack/async-storage#1.1.0" has unmet peer dependency "react-native#^0.38".
warning "workspace-aggregator-ad0ee18a-71f6-4b7e-ae5b-7d9c0089e4da > hydrated-oauth-redux > babel-jest#22.4.4" has unmet peer dependency "babel-core#^6.0.0 || ^7.0.0-0".
warning "workspace-aggregator-ad0ee18a-71f6-4b7e-ae5b-7d9c0089e4da > native > enzyme-adapter-react-16#1.11.2" has unmet peer dependency "react-dom#^16.0.0-0".
error An unexpected error occurred: "ENOENT: no such file or directory, scandir '[XXXX]/src/native/node_modules/#sentry'".
info If you think this is a bug, please open a bug report with the information provided in "[XXXX]/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
This causes a subsequent error in Xcode when attempting to run the app in the simulator, forcing me to restore my entire project to a prior commit.
/Users/[XXXX]/Library/Developer/Xcode/DerivedData/[XXXX]/Build/Intermediates.noindex/[XXXX].build/Debug-iphonesimulator/[XXXX].build/Script-00DD1BFF1BD5951E006B06BC.sh: line 5: export: `/[XXXX]/src/native/ios/.."': not a valid identifier
/Users/[XXXX]/Library/Developer/Xcode/DerivedData/[XXXX]/Build/Intermediates.noindex/[XXXX].build/Debug-iphonesimulator/[XXXX].build/Script-00DD1BFF1BD5951E006B06BC.sh: line 7: ../node_modules/#sentry/cli/bin/sentry-cli: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Many others have faced a similar error, yet I don't believe it's the root of my issue. None of their solutions have helped.
I have tried uninstalling sentry and completely wiping every mention from the project, reverting to previous commits, reinstalling nvm and yarn and react-native-sentry through multiple package managers, but no luck.

PyCall fails to build in julia under Linuxmint 17.2

Trying out julia-0.4 in Linuxmint 17.2, from the live disk. Installed it ok, added the ODE package ok and used it, tried to add PyPlot but it fails, even after suggested check and rebuild:
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove
julia> Pkg.build("PyCall")
INFO: Building PyCall
INFO: Recompiling stale cache file /home/mint/.julia/lib/v0.4/Conda.ji for module Conda.
WARNING: Module BinDeps uuid did not match cache file
WARNING: deserialization checks failed while attempting to load cache from /home/mint/.julia/lib/v0.4/Conda.ji
INFO: Precompiling module Conda...
INFO: Recompiling stale cache file /home/mint/.julia/lib/v0.4/Conda.ji for module Conda.
WARNING: Module BinDeps uuid did not match cache file
===============================[ ERROR: PyCall ]================================
LoadError: __precompile__(true) but require failed to create a precompiled cache file
while loading /home/mint/.julia/v0.4/PyCall/deps/build.jl, in expression starting on line 12
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: PyCall had build errors.
- packages with build errors remain installed in /home/mint/.julia/v0.4
- build the package(s) and all dependencies with `Pkg.build("PyCall")`
- build a single package by running its `deps/build.jl` script
================================================================================