LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot install solarcapture.rpm (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-install-solarcapture-rpm-4175654727/)

prithveemishra 05-28-2019 06:52 AM

Cannot install solarcapture.rpm
 
I am trying to install SolarFlare's Solarcapture software on a machine with solarflare's NIC, to which i have SSHed.
For that i was following steps from its documentation.
There at a particular step, i am stuck, it asks me to do these steps-
"""
Install a binary RPM:
1 Install a binary RPM (example).
# rpm -ivh solar_capture-core-<version>.x86_64.rpm
2 To view all installed components and files:
# rpm -qlp solar_capture-core-<version>.x86_64.rpm
Build and install a source RPM:
1 Build a binary from the source RPM (example).
# rpmbuild --rebuild solar_capture-python-<version>.src.rpm
This will produce some output including a "Wrote......" line.
2 Install the binary file:
# rpm -ivh <copy the location from the wrote line in the previous step>.rpm
"""
Now, when i do the step 1 of installing binary RPM,
i get error of linking dependencies,


root@TEST:~/SLO/Prithvi/installsc# rpm -ivh solar_capture-core-1.6.4.8-0.x86_64.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
warning: solar_capture-core-1.6.4.8-0.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 14acf4d8: NOKEY
error: Failed dependencies:
/sbin/ldconfig is needed by solar_capture-core-1.6.4.8-0.x86_64
/bin/sh is needed by solar_capture-core-1.6.4.8-0.x86_64
ld-linux-x86-64.so.2()(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libaio.so.1()(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6()(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6(GLIBC_2.3.2)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6(GLIBC_2.3.4)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6(GLIBC_2.4)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6(GLIBC_2.7)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libc.so.6(GLIBC_2.8)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libdl.so.2()(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libdl.so.2(GLIBC_2.2.5)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libm.so.6()(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libm.so.6(GLIBC_2.2.5)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
librt.so.1()(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
librt.so.1(GLIBC_2.2.5)(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64
libz.so.1()(64bit) is needed by solar_capture-core-1.6.4.8-0.x86_64,



now i have all these installed already.
For eg.


root@TEST:~/SLO/Prithvi/installsc# dpkg -l |grep libc6
ii libc6:amd64 2.27-3ubuntu1 amd64 GNU C Library: Shared libraries
ii libc6-dbg:amd64 2.27-3ubuntu1 amd64 GNU C Library: detached debugging symbols
ii libc6-dev:amd64 2.27-3ubuntu1 amd64 GNU C Library: Development Libraries and Header Files



that means i already have libc6 of version 2.27, and still my rpm fails to link it on its own, similarly all other dependies are installed already including /sbin/ldconfig and /bin/sh.
Now, as an alternative, if I use sudo alien -i rpmpackage.rpm to install this rpm, i am able to extract this package, but i get stuck in the next step of rpmbuild,


root@TEST:~/SLO/Prithvi/installsc# rpmbuild --rebuild solar_capture-python-1.6.4.8-0.src.rpm
Installing solar_capture-python-1.6.4.8-0.src.rpm
error: Failed build dependencies:
gcc is needed by solar_capture-python-1.6.4.8-0.x86_64
make is needed by solar_capture-python-1.6.4.8-0.x86_64
python-devel is needed by solar_capture-python-1.6.4.8-0.x86_64
solar_capture-core = 1.6.4.8-0 is needed by solar_capture-python-1.6.4.8-0.x86_64



, obvioulsy i have gcc and make installed in this system, i cant understand why rpm is unable to link this, can anyone suggest any way to solve this or is there any alien or other command to build this src.rpm without using rpm?
Also, i didnt get any solar_capture application after installing the binary RPM, was i supposed to get it?

root@TEST:~/SLO/Prithvi/installsc# solar_capture
solar_capture: command not found


I did get solar_capture library and headerfiles, but isnt there supposed to be some application for output to this such that i can use the commands as mentioned in the documentation,

# solar_capture eth2=eth2.pcap capture_busy_wait=1....

Please help me and suggest me as what i can do with this, i need Solar Capture to detect packets sent by EF_VI sender, which cant be sniffed by tcpdump because EF_VI APIs bypass kernel and tcpdump dumps it from kernel.

Edited:
My OS is ubuntu 18.04, is rpm not meant to be run Ubuntu?
Also, i think libc6 version 2.27 is latest and comes far later than the version 2.8 required by the rpm file.

jsbjsb001 05-28-2019 06:58 AM

I don't see you mention which Linux distribution you're using?

It looks like based on rpm complaining about not being able to find libc.so.6, that it requires CentOS/RHEL 7.

I think it's because you haven't got the correct versions of the libraries it's complaining about installed. Your system wouldn't be working full stop if you didn't have libc installed full stop.

prithveemishra 05-28-2019 07:18 AM

Quote:

Originally Posted by jsbjsb001 (Post 5999699)
I don't see you mention which Linux distribution you're using?

It looks like based on rpm complaining about not being able to find libc.so.6, that it requires CentOS/RHEL 7.

I think it's because you haven't got the correct versions of the libraries it's complaining about installed. Your system wouldn't be working full stop if you didn't have libc installed full stop.

Hi, i have edited my post and wrote the ubuntu version, please check it again. Thanks.

jsbjsb001 05-28-2019 07:24 AM

No, Ubuntu uses Debian software packages (.deb), not rpm software packages.

Have you tried searching Ubuntu's software repositories for this program? As that's your best bet.

prithveemishra 05-28-2019 11:56 PM

Quote:

Originally Posted by jsbjsb001 (Post 5999707)
No, Ubuntu uses Debian software packages (.deb), not rpm software packages.

Have you tried searching Ubuntu's software repositories for this program? As that's your best bet.


Okay, this package also had .deb files to be installed in an ubuntu system, i followed that steps.
4. Install solar-capture-core:

dpkg -i solar-capture-core_<scver>-1_amd64.deb

5. Build and install solar-capture-python:

dpkg-source -x solar-capture-python_<scver>-1.dsc
cd solar-capture-python-<scver>
debuild -us -uc
cd ..
dpkg -i solar-capture-python_<scver>-1_amd64.deb

These steps worked, but i still havent got any solar_capture software installed, at best i only have headers and libraries assosicated with solar_capture.
And the command solar_capture is still not working.

jsbjsb001 05-29-2019 02:30 AM

prithveemishra, while you're new here, and I can understand that it can be difficult to relay technical problems; please understand that the only information we have to go on, is the information you post here, we cannot see your machine, we cannot see what's on your screen, we do not know without you posting it what the details of your system are, or aren't.

While you have provided some information, please review the "LinuxQuestions.org FAQ (Welcome to LQ)" link in my posting signature below. I don't say this to be rude, as it will give you some ideas about what information we need, to best try and help you with your problem.

Please also answer the question I asked you before, which was: "Have you tried searching Ubuntu's software repositories for this program?". Please also provide any links where you see these "steps" you're following, so we can see them in their original detail. The reason I say this is because, if there IS a package for this program in Ubuntu's online software repositories, then you should be able to simply install it, then run the program - in that case, there should not be any need to build your own package.

Please also describe clearly what exactly you're trying to do.

prithveemishra 05-29-2019 06:50 AM

Quote:

Originally Posted by jsbjsb001 (Post 5999946)
prithveemishra, while you're new here, and I can understand that it can be difficult to relay technical problems; please understand that the only information we have to go on, is the information you post here, we cannot see your machine, we cannot see what's on your screen, we do not know without you posting it what the details of your system are, or aren't.

While you have provided some information, please review the "LinuxQuestions.org FAQ (Welcome to LQ)" link in my posting signature below. I don't say this to be rude, as it will give you some ideas about what information we need, to best try and help you with your problem.

Please also answer the question I asked you before, which was: "Have you tried searching Ubuntu's software repositories for this program?". Please also provide any links where you see these "steps" you're following, so we can see them in their original detail. The reason I say this is because, if there IS a package for this program in Ubuntu's online software repositories, then you should be able to simply install it, then run the program - in that case, there should not be any need to build your own package.

Please also describe clearly what exactly you're trying to do.

Hi, and I apologize for not being able to provide you with enough information earlier.
This is one of the documents available only for the software i am trying to install
https://usermanual.wiki/Pdf/SolarCap....648367222.pdf
In that, i have been trying to follow the installation section.
And the readme.txt file in the zip file of this package contains the guide about .deb files that i have followed later.
Its contents are as follows:
Installing SolarCapture deb packages
====================================

The following notes give guidance on installing SolarCapture on a Ubuntu
system.

In these notes:
<scver> refers to the version of SolarCapture being installed,
e.g. 1.3.1.9

<aoever> refers to the version of AOE SolarCapture being installed,
e.g. 1.3.1.1180

<oover> refers to the version of OpenOnload being installed,
e.g. 201502



Prerequisites
-------------
Create a working local directory and cd into it.

The following packages must be installed before installing SolarCapture:

libpcap-dev
autoconf
unzip
libtool
libaio1
devscripts
debhelper
python-dev
ethtool


Installing SolarCapture SDK
----------------------------
1. Unpack the zip:

unzip <path-to>solar_capture_sdk-<scver>.zip

2. Install the Solarflare Linux Utilities:

dpkg -i sfutils-*.deb

3. Build and install OpenOnload:

tar xf openonload-<oover>.tgz
cd openonload-<oover>
./scripts/onload_install
cd ..
onload_tool reload

4. Install solar-capture-core:

dpkg -i solar-capture-core_<scver>-1_amd64.deb

5. Build and install solar-capture-python:

dpkg-source -x solar-capture-python_<scver>-1.dsc
cd solar-capture-python-<scver>
debuild -us -uc
cd ..
dpkg -i solar-capture-python_<scver>-1_amd64.deb



Installing SolarCapture Pro
----------------------------
Note: The SolarCapture SDK must be installed before SolarCapture Pro can be
installed.

1. Unpack the zip:

unzip <path-to>solar_capture_pro-<scver>.zip

2. Install the debs:

dpkg -i solar-capture-live_<scver>-1_amd64.deb
dpkg -i solar-capture-pro_<scver>-1_amd64.deb



Installing AOE SolarCapture
---------------------------
Note: SolarCapture Pro must be installed before AOE SolarCapture can be
installed.

1. Unpack the zip:

unzip <path-to>aoe_solarcapture-<aoever>.zip


2. Install the debs:

dpkg -i aoe-utils_*.deb
dpkg -i aoe-solarcapture_<aoever>-1_amd64.deb

3. Program the AOE application and start the solar_aoed service:

/sbin/onload_tool reload
sfaoeupdate -y -w /etc/aoe/solarcapture.lst
update-rc.d solar_aoed defaults
service solar_aoed start
---------------------------------------
Since the AOE and Pro verisons are paid, i have only installed the SDK.
As for your question of checking ubuntu's respositories, i am still googling how to check it. I will reply about whether i found it, as soon as i know how to check it.

TB0ne 05-29-2019 06:54 AM

Quote:

Originally Posted by prithveemishra (Post 5999928)
Okay, this package also had .deb files to be installed in an ubuntu system, i followed that steps.
4. Install solar-capture-core:

dpkg -i solar-capture-core_<scver>-1_amd64.deb

5. Build and install solar-capture-python:

dpkg-source -x solar-capture-python_<scver>-1.dsc
cd solar-capture-python-<scver>
debuild -us -uc
cd ..
dpkg -i solar-capture-python_<scver>-1_amd64.deb

These steps worked, but i still havent got any solar_capture software installed, at best i only have headers and libraries assosicated with solar_capture. And the command solar_capture is still not working.

Ok...so did you go through the Solarwinds documentation, or contact their support? There is an entire PDF on their website dealing with a complete installation scenario:
https://support.solarflare.com/index...at=raw&id=1945

And is this a virtual machine? If so...solar capture most probably won't work at all. Again, see documentation/support.

prithveemishra 05-29-2019 06:54 AM

I searched https://packages.ubuntu.com/ and couldn't find the software that i was trying to find, its called Solar Capture.

prithveemishra 05-29-2019 06:58 AM

Yes this is a virtual box vm, and why won't it work on VM?
And i did go through their documentation about Solar Capture software, they have multiple documentations about different APIs.
Also, i have written tickets to their support before posting here but still havent gotten any reply.

Edit:
Sorry, i am using a VM but the machine which i am trying to install isnt a VM, i am simply taking ssh to that machine.

TB0ne 05-29-2019 06:59 AM

Quote:

Originally Posted by prithveemishra (Post 5999994)
Yes this is a virtual box vm, and why won't it work on VM? And i did go through their documentation about Solar Capture software, they have multiple documentations about different APIs.

Sorry, but if you DID go through the documentation, you'd know why. It's even mentioned several times in PDF link you were handed.
Quote:

Also, i have written tickets to their support before posting here but still havent gotten any reply.
Then either follow up with them, or open another ticket.

prithveemishra 05-29-2019 07:00 AM

Quote:

Originally Posted by prithveemishra (Post 5999994)
Yes this is a virtual box vm, and why won't it work on VM?
And i did go through their documentation about Solar Capture software, they have multiple documentations about different APIs.
Also, i have written tickets to their support before posting here but still havent gotten any reply.

I'm sorry, its not a VM, i am accessing a server from my VM, and trying to install it on that server. Because that server has Solar Flare's NICs installed in it.

prithveemishra 05-29-2019 07:03 AM

Quote:

Originally Posted by TB0ne (Post 5999995)
Sorry, but if you DID go through the documentation, you'd know why. It's even mentioned several times in PDF link you were handed.

Then either follow up with them, or open another ticket.

The document you have linked is basically for installing the network adapter which i already have installed.
Its not about the software that i am trying to install.

TB0ne 05-29-2019 07:14 AM

Quote:

Originally Posted by prithveemishra (Post 5999997)
The document you have linked is basically for installing the network adapter which i already have installed. Its not about the software that i am trying to install.

Not much I can help you with then, sorry; AGAIN, that document references solar capture and tells you about why things won't work in a VM well, if at all. Either read it or don't...that's up to you.

prithveemishra 05-29-2019 07:21 AM

Quote:

Originally Posted by TB0ne (Post 6000003)
Not much I can help you with then, sorry; AGAIN, that document references solar capture and tells you about why things won't work in a VM well, if at all. Either read it or don't...that's up to you.

Thanks for linking that document, but as i said, the machine i am trying to install solar_capture onto, isnt a vm.


All times are GMT -5. The time now is 08:39 AM.