LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   xorg-x11-devel installation (https://www.linuxquestions.org/questions/linux-newbie-8/xorg-x11-devel-installation-922765/)

guler 01-08-2012 04:18 PM

xorg-x11-devel installation
 
Hello Everybody,

this is my first question :-)

How can I install xorg-x11-devel with rpm resource (I downloaded xorg-x11-devel-7.6-28.1.x86_64.rpm )? Any hint, suggestion?

Many Thanks!
Guler

colucix 01-08-2012 05:19 PM

Hello and welcome to LinuxQuestions!

What Linux OS are you running on? Usually you don't need to download a package manually. You should let the package manager download and install it for you (unless your system lacks an active internet connection). By the way, to install a downloaded package (from the command line) you can do
Code:

yum localinstall xorg-x11-devel-7.6-28.1.x86_64.rpm
if running a Red-Hat based distribution, or
Code:

zypper in xorg-x11-devel-7.6-28.1.x86_64.rpm
if running OpenSuSE.
Alternatively, if you have a desktop environment you can try to right click on the package icon and select "open with package manager" or something similar.

guler 01-09-2012 04:33 AM

Hey,

Thanks! on Ubuntu, it gives error when download it by using package manager. I check with

rpm -q xorg-x11-devel-7.6-28.1.x86_64.rpm

seems not installed. When do this

rpm -ihv xorg-x11-devel-7.6-28.1.x86_64.rpm

gives the error below. May be, need another package to install with this one ..

however, this works

sudo apt-get install xorg-dev

In this case, I don t know which x11 lib files missed..
###
error: Failed dependencies:
/usr/bin/pkg-config is needed by xorg-x11-devel-7.6-28.1.x86_64
fontconfig-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
freetype2-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
libXi6-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
libpciaccess0-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
libpixman-1-0-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
pkgconfig is needed by xorg-x11-devel-7.6-28.1.x86_64
pkgconfig(compositeproto) >= 0.4 is needed by xorg-x11-devel-7.6-28.1.x86_64
pkgconfig(damageproto) >= 1.1 is needed by xorg-x11-devel-7.6-28.1.x86_64
...

adamk75 01-09-2012 04:50 AM

You should never install packages designed for one distribution on another. Open up Synaptic and search for Ubuntu's version of the package.

Adam

guler 01-09-2012 05:17 AM

SOLVED: org-x11-devel installation
 
Hello Everybody,

X11 lib is OK now, I found its Ubuntu versions by Synaptic.

Thanks colucix,Adam!

colucix 01-09-2012 05:28 AM

As adamk75 said. The RPM packages are for distributions based on Red Hat or OpenSuSE. The RPM acronym itself stats for Red-Hat Package Manager. Ubuntu is based on Debian and uses DEB packages. apt-get is the right tool from the command line, synaptic is a package manager with an easy Graphical User Interface.

There are rare cases when you have to truly install a RPM on a Debian based system. In that case you need to convert the RPM to DEB using alien. Believe me, these are very uncommon situations.

Especially in case of development packages, like xorg-x11-devel, you must install the software specifically built for your distribution, hence
Code:

sudo apt-get install xorg-dev
was the right thing to do. Indeed, ubuntu provides the rpm package manager you've installed, but I think it's based on alien as well.

Lastly, here are some useful links:
https://help.ubuntu.com/community/RPM/AlienHowto
https://help.ubuntu.com/community/SynapticHowto
https://help.ubuntu.com/community/AptGet/Howto

Edit: I've just seen your latest post. Well done!! :)

jcky 01-09-2012 08:22 PM

You can keep pc online & yum repos has been created.

Code:


yum install <package-name>


Quote:

Originally Posted by guler (Post 4570020)
Hey,

Thanks! on Ubuntu, it gives error when download it by using package manager. I check with

rpm -q xorg-x11-devel-7.6-28.1.x86_64.rpm

seems not installed. When do this

rpm -ihv xorg-x11-devel-7.6-28.1.x86_64.rpm

gives the error below. May be, need another package to install with this one ..

however, this works

sudo apt-get install xorg-dev

In this case, I don t know which x11 lib files missed..
###
error: Failed dependencies:
/usr/bin/pkg-config is needed by xorg-x11-devel-7.6-28.1.x86_64
fontconfig-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
freetype2-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
libXi6-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
libpciaccess0-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
libpixman-1-0-devel is needed by xorg-x11-devel-7.6-28.1.x86_64
pkgconfig is needed by xorg-x11-devel-7.6-28.1.x86_64
pkgconfig(compositeproto) >= 0.4 is needed by xorg-x11-devel-7.6-28.1.x86_64
pkgconfig(damageproto) >= 1.1 is needed by xorg-x11-devel-7.6-28.1.x86_64
...



All times are GMT -5. The time now is 07:45 AM.