can't install rpm on freebsd

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

can't install rpm on freebsd

Postby utkarsh » 04 Mar 2010, 08:20

Hi All,

I have a rpm file for a commercial software which I am trying to install on FreeBSD.
I read thorough this page to get information on the porting details.
http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html
I give the rpm2cpio command but it doesn't work for this package.
I have attached the error screenshot for reference.
What could be the possible problem with the package?
Also, I am new to FreeBSD so please bear with me if I don't get some of the basics right :)

Thanks,
Utkarsh
Attachments
2.JPG
2.JPG (19.44 KiB) Viewed 650 times
utkarsh
Junior Member
 
Posts: 4
Joined: 16 Feb 2010, 12:15
Location: Bangalore, India

Postby lyuts » 07 Mar 2010, 14:37

The question is, do the developers of that software confirm that their software is installable on FreeBSD?
The best way to install it (or try to install) is to compile (or try to compile) that software from source code.

What is this software? Do you really need this proprietary software? Aren't there any opensource alternatives?
I'm a rebel in the S.D.G.
lyuts
Member
 
Posts: 185
Joined: 17 Nov 2008, 07:36
Location: Kyiv, Ukraine

Postby graudeejs » 07 Mar 2010, 20:02

well, rmp aren't supported by FreeBSD, if there is some info about how to install particular Linux Package on FreeBSD, that is separate case.
FreeBSD supports FreeBSD ports and FreeBSD packages (which are recompiled FreeBSD ports)
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby utkarsh » 08 Mar 2010, 10:13

@lyuts: The software is a proprietary data management software and is the only software available. Its called data fabric manager. No it's not made for FreeBSD at all. Infact it is configured to run on RHEL and windows only. It is difficult to compile from source as there are a bunch of platform specific things defined there. All the code is in C and C++ only.

@killasmurf: I learnt that you can run any random Linux RPM based app on FreeBSD with Linux compatibility pack ..
http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html
That's what I was trying to attack. To compile the software from source on FreeBSD is a pain because of platform specific things.Shouldn't this emulation be good enough?? After all, that's the purpose it is there !!
utkarsh
Junior Member
 
Posts: 4
Joined: 16 Feb 2010, 12:15
Location: Bangalore, India

Postby achix » 08 Mar 2010, 11:55

killasmurf86 wrote:well, rmp aren't supported by FreeBSD, if there is some info about how to install particular Linux Package on FreeBSD, that is separate case.
FreeBSD supports FreeBSD ports and FreeBSD packages (which are recompiled FreeBSD ports)


that's not true. In FreeBSD there is the [FILE]/usr/ports/archivers/rpm[/FILE] port, which is supposed to be used for installation of linux packages.
Someone might try and install linux RPMs by specifying --prefix <path> on the [CMD="# rpm"]-i[/CMD] command.
So utkarsh could smth like:
[CMD="# rpm"]-i --prefix /compat/linux <package_name>.rpm[/CMD]
Needless to say, the linux emulation should be enabled in the kernel and of course the latest linux base port should be also installed.
In my case i have chosen the fedora 10 port: linux_base-f10-10_2
User avatar
achix
Member
 
Posts: 241
Joined: 25 Nov 2008, 13:44
Location: Greece, Balkan Federation

Postby graudeejs » 08 Mar 2010, 12:07

achix wrote:that's not true. In FreeBSD there is the [FILE]/usr/ports/archivers/rpm[/FILE] port, which is supposed to be used for installation of linux packages.
Someone might try and install linux RPMs by specifying --prefix <path> on the [CMD="# rpm"]-i[/CMD] command.
So utkarsh could smth like:
[CMD="# rpm"]-i --prefix /compat/linux <package_name>.rpm[/CMD]
Needless to say, the linux emulation should be enabled in the kernel and of course the latest linux base port should be also installed.
In my case i have chosen the fedora 10 port: linux_base-f10-10_2


I don't use Linux API, but:
If some linux software (no matter packaging) would be supported by FreeBSD, then that software would be available in FreeBSD ports (same way as [port]www/linux-f10-flashplugin10[/port]

So, if it ain't in ports, it's not supported ;)
That's how I see it
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby tangram » 08 Mar 2010, 12:19

killasmurf86 wrote:So, if it ain't in ports, it's not supported ;)
That's how I see it


If it isn't in the ports tree try to port it yourself. If you succeed submit PR so someone else doesn't re-invent the wheel ;).
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby achix » 08 Mar 2010, 12:41

killasmurf86 wrote:I don't use Linux API, but:
If some linux software (no matter packaging) would be supported by FreeBSD, then that software would be available in FreeBSD ports (same way as [port]www/linux-f10-flashplugin10[/port]

So, if it ain't in ports, it's not supported ;)
That's how I see it


There is (well there was) a huge amount of software with no source available (non-free software). Running Oracle on FreeBSD has been such a (very popular) case. In those cases of commercial-mostly software, there might be an RPM but there cannot be no FreeBSD port.
User avatar
achix
Member
 
Posts: 241
Joined: 25 Nov 2008, 13:44
Location: Greece, Balkan Federation

Postby graudeejs » 08 Mar 2010, 13:20

achix wrote:There is (well there was) a huge amount of software with no source available (non-free software). Running Oracle on FreeBSD has been such a (very popular) case. In those cases of commercial-mostly software, there might be an RPM but there cannot be no FreeBSD port.


Which leads to the fact, that this software IS NOT SUPPORTED by FreeBSD.

It is FreeBSD that should be supported by these vendors =>
Costumer gets CD [for example] with proprietary software, containing either precompiled binaries in FreeBSD packages ready to be installed, or binary modules, that needs to be linked on FreeBSD.

If software is created for Linux, then it is for Linux, FreeBSD can't be held responsible for it {again my opinion}, even if FreeBSD provides Linux Compatibility layer

FreeBSD has wine in ports, but that doesn't mean, that FreeBSD is supporting MS Office {even if you can run it successfully}, hell no

And again: all this in my posts is strictly my own opinion
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby achix » 08 Mar 2010, 13:34

killasmurf86 wrote:Which leads to the fact, that this software IS NOT SUPPORTED by FreeBSD.


Are you implying that all 21359 ports currently in the ports tree *are* supported? :e
Anyway the initial poster asked how can he install a linux RPM in FreeBSD, and not what is supported and what is not.
Then he can test if it works or not. If it does not work, then he may start trying to make it work, if that proved impossible then he might try yelling and cursing at the sw vendor as you seem to suggest. :P
User avatar
achix
Member
 
Posts: 241
Joined: 25 Nov 2008, 13:44
Location: Greece, Balkan Federation

Postby achix » 09 Mar 2010, 03:50

utkarsh wrote:Hi All,

I have a rpm file for a commercial software which I am trying to install on FreeBSD.
I read thorough this page to get information on the porting details.
http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html
I give the rpm2cpio command but it doesn't work for this package.
I have attached the error screenshot for reference.
What could be the possible problem with the package?
Also, I am new to FreeBSD so please bear with me if I don't get some of the basics right :)

Thanks,
Utkarsh


Also, run your commands as root. i see from your attachment that you try to run cpio as non-root.
User avatar
achix
Member
 
Posts: 241
Joined: 25 Nov 2008, 13:44
Location: Greece, Balkan Federation


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: trh411 and 1 guest