Compiling packages for linux installations

Hello,

I downloaded Kile for my latex documentation.
Since im a bit new here, i wanted what steps do i need to follow after uncompressing the .gz gnu zip files. I know i need to compile them, but somehow my ‘make’ and ‘gcc’ kinda knowledge is not working here for compiling the source files.

Please guide me towards standard package installation from any bunch of source files. (tried the standard way mentioned online, but doesnt seem to work (./configure,make etc.)

Thanks

Xizz

You do not tell us where you are stuck, nor give any error messages, I have to guess what you have done and what not.

Normally when you unpack a tarbal there is somewhere a fiel README or the like. Have you found and read README?

Did you install gcc and make? They are not installed on a default installation, but this can easily be done using YaST because they are on the OSS repo.

there is no standard for any bunch of source files. It depends a lot on how the build structure of the program is constructed. Some use the traditional way of ./configure, make, make install and some just offer a Makefile where you only type make and then as root make install. Others instead use cmake which usually required you first make a directory called ‘build’, cd to it and execute something like cmake …

Usually, most programs offered in source code have a README, INSTALL or such files with instructions how to build it

ok, let me state simply. I didnt know opensuse doesnt come with make or gcc. I have the source files for Kile unzipped, and now looking for gcc, make etc… and would love to know shortest way to succesfully compile them towards my Kile tex files.

After your hint im looking for gcc rpms online, so that i can compile them somehow. Will you have some hints?

Of course SUSE comes with full building tools, they are just not installed by default. Go to yast software management, select at the top “patterns” and click on the C/C++ Development and RPM Build Environment patterns and install. You do not go hunt for GCC RPMs on some random site :wink:

@microchip8 :

Ok, thanks, i found ‘some’ info in an associated readme also.

Ok, the readme of latex 2.0.3 tells me to configure.
It says:
*2.) Building Kile from source

  • Extract the source code with tar xjf kile-2.0.x.tar.bz2
  • cd kile-2.0.x
  • ./configure --prefix=path_to_KDE3 (/usr or /opt/kde3 generally) --with-qt-dir=path_to_QT3 library (/usr/lib/qt3 generally)
    – If you don’t know what the path to KDE3 on your system is, you can use output of kde-config --prefix.
    – Or you can choose --prefix=$HOME/.kde to not mess up with your distribution’s package management system.*

The output i get has this written at the end:
*
checking for Qt… configure: error: Qt (>= Qt 3.2 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.ecking for Qt… configure: error: Qt (>= Qt 3.2 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.checking for Qt… configure: error: Qt (>= Qt 3.2 and < 4.0) (headers and libraries) not found. Please check your installation! For more details about this problem, look at the end of config.log.*

The log file is pretty long and exits with exit 1

forgot to mention that i didnt know path_to_KDE or path_to_qt so i ran the $ option mentioned in the end. It seems its complaining for qt.

if it depends on KDE, then you need to install the QT development tools & libs, which also offer qmake and moc :wink:

OK, just installed all qt development tools (except for developement documentation), but i still get this error:

checking for Qt… configure: error: Qt (>= Qt 3.2 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

I think if i specify different command it will be ok… i mean to say that a path to qt will probably work, would someone know the path to qt???

Xizz

the package you’re trying to build requires pretty old QT libs and tools which unfortunately are no more available in SUSE, iirc. Not much you can do besides contacting the project

ok tried many combinations but the error doesnt go? can u suggest something?

the error won’t go away if it finds incompatible qt versions and headers. The only way to change this is to update the code of the program itself you’re trying to compile, or to install QT libs/headers which are compatible with it

Can somebody mention me the error in the script:
./configure --prefix /opt/kde3/bin --with-qt-dir=/usr/lib/qt3/bin

Thanks

remove the bin in /usr/lib/qt3/bin and /opt/kde3/bin

then perhaps i can try a different version, which i avoided initially because i feared this very case.

let see if im able to find the headers :frowning:

Hi
Why are you trying to install from source, kile 2.0.3 is in the kde
backports repository;

Look here Get It should
be your first stop :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 12:39, 3 users, load average: 0.20, 0.05, 0.01
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

Thanks a lot for the hint that its already there as rpm, otherwise i had almost gone crazy trying for hours.

@microchip: tried removing /bin also but didnt work…

Now ill hopefully get it from the packman packages.

Xizz