How to install a rpm package as static library on RHEL 6? - static-libraries

I have install libXpm-3.5.8-2.el6.x86_64 rpm package on RHEL.
I want to install libXpm-3.5.8-2.el6.x86_64 rpm package as a static library.
RHEL 6 :
[root#ebw-brims2-server XPM]# rpm -qa | grep Xpm
libXpm-3.5.8-2.el6.x86_64
[root#ebw-brims2-server XPM]# yumdownloader libXpm-3.5.8-2.el6.x86_64
Loaded plugins: amazon-id, product-id, refresh-packagekit, rhui-lb
libXpm-3.5.8-2.el6.x86_64.rpm | 59 kB 00:00
[root#ebw-brims2-server XPM]# ll
total 60
-rw-r--r-- 1 root root 60208 Apr 16 2014 libXpm-3.5.8-2.el6.x86_64.rpm
I want to install above rpm package libXpm-3.5.8-2.el6.x86_64.rpm as static library at /usr/local/lib.
Please suggest , how to install rpm package as static library.

That's not how RPMs work. If the package doesn't include the static libraries (sometimes the package-devel RPM does), then they're not available. You'll have to build from source.

Related

How to produce the Electron Packaged App for Windows in Ubuntu Environment using Electron-Forge?

I'm developing in Ubuntu 22.04 Desktop environment. To produce a packaged app for Windows do I need to use a MS Windows environment or can I do it within Ubuntu 22.04 Desktop environment? I ask this, because I do not see any "windows"-related output:
/out/make$ ls -lah
total 20K
drwxrwxr-x 5 raphy raphy 4,0K gen 5 12:42 .
drwxrwxr-x 4 raphy raphy 4,0K gen 5 12:41 ..
drwxrwxr-x 3 raphy raphy 4,0K gen 5 12:41 deb
drwxrwxr-x 3 raphy raphy 4,0K gen 5 12:42 rpm
drwxrwxr-x 3 raphy raphy 4,0K gen 5 12:42 zip
even if I've set in package.json maker-squirrel :
"makers": [
{
"name": "#electron-forge/maker-squirrel",
Do I have to install the wine terminal in my Ubuntu 22.04 Desktop environment, in order to correctly product the Windows packaged app? Or what else do I have to do?
Executing : yarn make --platform=win32 I get the following message:
raphy#raohy:~/ForgeTypescriptReactWebpack$ yarn make --platform=win32
yarn run v1.22.19
$ electron-forge make --platform=win32
✔ Checking your system
✔ Loading configuration
✔ Resolving make targets
› Making for the following targets: squirrel, zip
❯ Running package command
✔ Preparing to package application
✔ Running packaging hooks
✔ Running generateAssets hook
✔ Running prePackage hook
✔ [plugin-webpack] Preparing native dependencies: 1 / 1
✔ [plugin-webpack] Building webpack bundles
❯ Packaging application
❯ Packaging for x64 on win32
✔ Copying files
✔ Preparing native dependencies [0.1s]
✖ Finalizing package
› Wrapper command 'wine64' not found on the system. Consult your Linux distribution's package manager to deter…
Wine is required to use the appCopyright, appVersion, buildVersion, icon, and
win32metadata parameters for Windows targets.
See https://github.com/electron/electron-packager#building-windows-apps-from-non-windows-platforms for detai…
◼ Running postPackage hook
◼ Running preMake hook
◼ Making distributables
◼ Running postMake hook
An unhandled rejection has occurred inside Forge:
Error: Wrapper command 'wine64' not found on the system. Consult your Linux distribution's package manager to determine how to install Wine.
Wine is required to use the appCopyright, appVersion, buildVersion, icon, and
win32metadata parameters for Windows targets.
See https://github.com/electron/electron-packager#building-windows-apps-from-non-windows-platforms for details.
at spawnWrapper (/home/raphy/ForgeTypescriptReactWebpack/node_modules/cross-spawn-windows-exe/dist/src/wrapper.js:77:19)
at async module.exports (/home/raphy/ForgeTypescriptReactWebpack/node_modules/rcedit/lib/rcedit.js:42:3)
at async WindowsApp.runRcedit (/home/raphy/ForgeTypescriptReactWebpack/node_modules/electron-packager/src/win32.js:95:7)
at async WindowsApp.create (/home/raphy/ForgeTypescriptReactWebpack/node_modules/electron-packager/src/win32.js:105:5)
at async Promise.all (index 0)
at async packager (/home/raphy/ForgeTypescriptReactWebpack/node_modules/electron-packager/src/index.js:204:20)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
So, definitely Wine has to be installed
After installing wine and executing the yarn make --platform=win32 again, I get some strange errors, for which I open another post

libboost_filesystem.so.1.71.0: cannot open shared object file: No such file or directory

Following the indications found here: https://switch2osm.org/serving-tiles/manually-building-a-tile-server-ubuntu-22-04-lts/ I'm trying to install Tile Server in Ubuntu 22.04
but I'm getting this error:
raphy#pc:~$ sudo -u _renderd osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script ./OSM_src/openstreetmap-carto/openstreetmap-carto.lua -C 2500 --number-processes 1 -S ./OSM_src/openstreetmap-carto/openstreetmap-carto.style ./OSM_src/data/azerbaijan-latest.osm.pbf
osm2pgsql: error while loading shared libraries: libboost_filesystem.so.1.71.0: cannot open shared object file: No such file or directory
The libboost library present is 1.74.0:
raphy#pc:~$ sudo apt install libboost-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libboost-dev is already the newest version (1.74.0.3ubuntu7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
raphy#pc:/usr/lib/x86_64-linux-gnu$ ls -lah | grep libboost_filesystem.so
lrwxrwxrwx 1 root root 29 mar 16 2022 libboost_filesystem.so -> libboost_filesystem.so.1.74.0
-rw-r--r-- 1 root root 123K mar 16 2022 libboost_filesystem.so.1.74.0
Following the indications found here: https://askubuntu.com/questions/950313/how-to-set-ld-library-path-permanently
I've set in .bashrc file:
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/libboost_filesystem.so"
And, following the indications found here: https://serverfault.com/questions/201709/how-to-set-ld-library-path-in-ubuntu
I've set /etc/ld.so.conf.d/libboost.conf as :
/usr/lib/x86_64-linux-gnu/libboost_filesystem.so
And then
sudo ldconfig
But still get the error:
osm2pgsql: error while loading shared libraries: libboost_filesystem.so.1.71.0: cannot open shared object file: No such file or directory
How to solve the problem?

Using miniconda to install anaconda and getting [Errno 13] Permission denied

I am new to Python/Anaconda and trying to do some self-learning on my company owned laptop (Windows). Downloading Anaconda from the site kept failing, so I downloaded miniconda and ran conda install anaconda. It displayed all of the packages that would be downloaded, installed, updated. I proceeded and most of the packages got to 100% but then I got [Errno 13] which said permission was denied for libtiff package.
Doing some research, I tried running the conda prompt in Admin mode, Didn't help. Tried doing a clean all command and retried the conda install anaconda command multiple times as I thought it may finish where it left off, but no luck, I keep getting some version of permission denied error for the libtiff package. I tried doing conda install anaconda-navigator but that didn't work either. Maybe there is an easy workaround to avoid miniconda altogether? I have some results from my last run today below.
(base) C:\Users\jaugustin>conda install anaconda
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: C:\Users\jaugustin\AppData\Local\Continuum\miniconda3
added / updated specs:
- anaconda
The following packages will be downloaded:
package | build
---------------------------|-----------------
jpeg-9b | hb83a4c4_2 313 KB
xz-5.2.4 | h2fa13f4_4 812 KB
zlib-1.2.11 | h62dcd97_3 128 KB
zstd-1.3.7 | h508b16e_0 536 KB
------------------------------------------------------------
Total: 1.7 MB
The following NEW packages will be INSTALLED:
alabaster pkgs/main/win-64::alabaster-0.7.12-py37_0
anaconda pkgs/main/win-64::anaconda-2019.03-py37_0
anaconda-client pkgs/main/win-64::anaconda-client-1.7.2-py37_0
anaconda-project pkgs/main/win-64::anaconda-project-0.8.2-py37_0
Many more NEW packages listed as well...
The following packages will be UPDATED:
cffi 1.11.5-py37h74b6da3_1 --> 1.12.2-py37h7a1dbc1_1
cryptography 2.4.2-py37h7a1dbc1_0 --> 2.6.1-py37h7a1dbc1_0
menuinst 1.4.14-py37hfa6e2cd_0 --> 1.4.16-py37he774522_0
pip 18.1-py37_0 --> 19.0.3-py37_0
pyopenssl 18.0.0-py37_0 --> 19.0.0-py37_0
python 3.7.1-h8c8aaf0_6 --> 3.7.3-h8c8aaf0_0
setuptools 40.6.3-py37_0 --> 40.8.0-py37_0
sqlite 3.26.0-he774522_0 --> 3.27.2-he774522_0
wheel 0.32.3-py37_0 --> 0.33.1-py37_0
win_inet_pton 1.0.1-py37_1 --> 1.1.0-py37_0
The following packages will be SUPERSEDED by a higher-priority channel:
pyparsing pkgs/main/noarch::pyparsing-2.4.0-py_0 --> pkgs/main/win-64::pyparsing-2.3.1-py37_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
xz-5.2.4 | 812 KB | ############################################################################ | 100%
zlib-1.2.11 | 128 KB | ############################################################################ | 100%
zstd-1.3.7 | 536 KB | ############################################################################ | 100%
jpeg-9b | 313 KB | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: failed
CondaVerificationError: The package for libtiff located at C:\Users\jaugustin\AppData\Local\Continuum\miniconda3\pkgs\libtiff-4.0.10-hb898794_2
appears to be corrupted. The path 'Library/bin/libtiff.dll'
specified in the package manifest cannot be found.
Many more similar errors are listed all with the libtiff package for various files.
The Problem is, some of the security patches has blacklisted an exe file tiff2pdf.exe.
If you try to create a text file abc.txt at that folder C:\Users\jaugustin\AppData\Local\Continuum\miniconda3\pkgs\libtiff-4.0.10-hb898794_2\Library\bin\ and rename it as tiff2pdf.exe it would ask Admin privilage and still it may block you.
Your System admin may be able to help you resolve.

error while installing snmp package in SUSE 11

I am trying to install SNMP package in SUSE Linux enterprise server 11. I downloaded net-snmp-5.6.1-3.3.x86_64.rpm and installed with the below command
UKGBDCESRPL048:/opt/packages # rpm -ivh --nodeps net-snmp-5.6.1-3.3.x86_64.rpm
warning: net-snmp-5.6.1-3.3.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
Preparing...
##################################### [100%]
1:net-snmp
##################################### [100%]
Updating /etc/sysconfig/net-snmp...
But when I try to start snmpd service, I am getting an error below:
UKGBDCESRPL048:/opt/packages # /etc/init.d/snmpd start
Starting snmpd/usr/sbin/snmpd: error while loading shared libraries: libnetsnmpagent.so.25: cannot open shared object file: No such file or directory
startproc: exit status of parent of /usr/sbin/snmpd: 127
Please help me to properly install SNMP package.
Why are you trying to install the RPM with --nodeps? This breaks your RPM dependencies! Please remove the package again and try to install it without that option. This should fail with a list of additionally required RPM's.
You'll have to install them, too. BTW, I'm sure that at least the RPM libsnmp15 is missing, because libnetsnmpagent.so.25 is in there.
You could also configure SLES to use one or more (online) repositories after registering your machine with a license key. After that, a simple
zypper in net-snmp
should solve all dependencies automatically.
One more thing: net-snmp-5.6.1-3.3.x86_64.rpm doesn't seem to be a valid SLES 11 package. Latest version (even SP4) is 5.4.2.1-8.12.24.1. Where did you get the RPM from? Just wondering...

yum update kernel conflict

I have RaspberryPI model B with Fedora Raspberry Remix 17 RC2 (installed at September 2012).
Yesterday, i did try yum update. But i could not do it. Why?
[root#rberry ~]# yum update raspberrypi-kernel
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package raspberrypi-kernel.armv5tel 0:3.2.27-1.20120926git9245b4c.rpfr17 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================
Package Arch Version Repository Size
============================================================================
Installing:
raspberrypi-kernel armv5tel 3.2.27-1.20120926git9245b4c.rpfr17 rasp-pi 12 M
Transaction Summary
============================================================================
Install 1 Package
Total size: 12 M
Installed size: 37 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Check Error:
file /boot/kernel.img from install of raspberrypi-kernel-3.2.27-1.20120926git9245b4c.rpfr17.armv5tel conflicts with file from package raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel
Error Summary
-------------
Update
[root#rberry opt]# rpm -qa raspberrypi-kernel\*
raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel
[root#rberry opt]# uname -a
Linux rberry 3.1.9 #1 PREEMPT Mon Jul 30 14:50:41 EDT 2012 armv6l armv6l armv6l GNU/Linux
[root#rberry opt]# yum install raspberrypi-kernel-3.2.27-1.20120926git9245b4c.rpfr17.armv5tel
.....
Transaction Check Error:
file /boot/kernel.img from install of raspberrypi-kernel-3.2.27-1.20120926git9245b4c.rpfr17.armv5tel conflicts with file from package raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel
[root#rberry opt]# rpm -qf /boot/kernel.img
raspberrypi-kernel-3.1.9-11.20120727gitf958199.rpfr17.armv5tel
Sorry for my bad English ))
There likely is a packaging problem in which both kernel packages "owns" a common set of files (in this case, /boot/kernel.img is claimed by both packages, ergo they cannot both be installed at the same time)
What kernels do you have installed at the moment? Try
rpm -qa raspberry-kernel\*
If you have another kernel beside the 3.1.9-11 that's causing the problem, boot to it, remove the troublesome one and then install the new kernel update.
Failing that, just update everything but the kernel:
yum update --exclude=raspberry-kernel\*
Have you tried
yum clean all
followed by
yum update
I got the same problem and solved it in a minute. Hope it can still be helpful.

Resources