Author Topic: convert tar.gz to rpm to install application with synaptic  (Read 2708 times)

emiliec15

  • Guest
convert tar.gz to rpm to install application with synaptic
« on: December 12, 2009, 10:52:30 AM »
Hi I need to know how I can convert the sourcecode tar.gz to rpm so that I can install an application that I would prefer to have integrated within my synaptic.

Does anyone know how to do this and are you willing to divulge the information that I need?

Online muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: convert tar.gz to rpm to install application with synaptic
« Reply #1 on: December 12, 2009, 11:02:22 AM »

you have more than ten posts ..you now have the privilege to make a package request in the package request section ..why not use that privilege and make a package request of this program you want? it will benefit you and all that will come after you who also want to use the package

if you do decide to go on your own on this(not recommended here) ..you will have to compile the program yourself, make a .rpm package yourself and install it using rpm or kpackage and hope this package wont break anything immediately or at some point in the future in ways nobody can predict

this process could be complicated and linux may seem difficult that it is for you ...how experienced are you with linux and the the terminal?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: convert tar.gz to rpm to install application with synaptic
« Reply #2 on: December 12, 2009, 11:13:41 AM »
Hi I need to know how I can convert the sourcecode tar.gz to rpm so that I can install an application that I would prefer to have integrated within my synaptic.

Does anyone know how to do this and are you willing to divulge the information that I need?

You will need to have the dependencies installed, and the files that the building of the package requires ..... usually 'devel' packages from the repository.

You will need to extract the tar.gz to a folder you create ... it can be on the Desktop.
Enter into that folder and find maybe Install instructions or maybe Readme or other file to read.

The general instructions would be to
./configure
make
make install

There are variations on those depending on the instructions you find.

To create the RPM, do not perform the last command -- make install.
Instead you gain root privileges and do
checkinstall    (you will of course need that package installed on your system)

That should produce an RPM and tell you where it saved it.

You can then do a test install of that RPM using Kpackage ... be sure to choose the Test Install.
That will tell you if it will install cleanly.
If you get a good result you can install the RPM and try the applicaiton to see if it works.
You should also be able to uninstall it using Synaptic if you wish.

That is the general method I use.
Of course each stage may throw up errors which you will need to hunt down, and when fixed redo the commands to build the RPM.

That is as I recall the procedure. I may have omitted something, or made an error in the above, so please doube check everything.

Hope that helps a little.

regards.

emiliec15

  • Guest
Re: convert tar.gz to rpm to install application with synaptic
« Reply #3 on: December 12, 2009, 11:17:06 AM »
I've been distro-hopping for years.  I can do most things but unfortunately since I haven't used pclos for all that long I am not sure how to go about getting it to work right without screwing anything up.  I have already put a package request in but I am needing that program soon to finish a few of my projects that have been on hold since I switched to pclos.  I know the bash terminal somewhat but I am not fluent within it.

Unfortunately I have tried to use the commands
./configure
make
sudo make checkinstall

but it has problems with something.  I can try it again and post what it puts out if that would help.

Online muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: convert tar.gz to rpm to install application with synaptic
« Reply #4 on: December 12, 2009, 11:23:18 AM »

do you have a link to this package source code?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

emiliec15

  • Guest

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: convert tar.gz to rpm to install application with synaptic
« Reply #6 on: December 12, 2009, 12:06:40 PM »
I've been distro-hopping for years.  I can do most things but unfortunately since I haven't used pclos for all that long I am not sure how to go about getting it to work right without screwing anything up.  I have already put a package request in but I am needing that program soon to finish a few of my projects that have been on hold since I switched to pclos.  I know the bash terminal somewhat but I am not fluent within it.

Unfortunately I have tried to use the commands
./configure
make
sudo make checkinstall

PCLinuxOS does not use SUDO by default.

use 'SU' and enter the root password and than enter the command
make checkinstall

Quote

but it has problems with something.  I can try it again and post what it puts out if that would help.

It always helps to post error messages when you have them and are asking for help.
« Last Edit: December 12, 2009, 12:27:35 PM by YouCanToo »




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: convert tar.gz to rpm to install application with synaptic
« Reply #7 on: December 12, 2009, 12:13:59 PM »
Blender is avaible in our repos, you like an update, or you like to learn about rpm build?

emiliec15

  • Guest
Re: convert tar.gz to rpm to install application with synaptic
« Reply #8 on: December 12, 2009, 12:32:29 PM »
Well actually to answer your question: I would like to learn to make an rpm AND have an update.

The version of blender that is in the repos is 2.49, which came before 2.49a, which preceded 2.49b(the current stable version).

The message that I get after trying to run ./configure is:
bash: ./configure: No such file or directory
AFTER make:
====> make all in extern
make[1]: sdl-config: Command not found
make[1]: sdl-config: Command not found
Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
make[1]: sdl-config: Command not found
Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
====> make all in extern/qhull/src
gcc -c -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DUSE_BULLET -DWITH_BULLET -pipe -fPIC  -funsigned-char -fno-strict-aliasing -DNDEBUG -O2 -DMOZ_NOT_NET -I../include user.c -o /home/tux_lover/Downloads/blender-2.49b/obj/linux-glibc2.10.1-i386/extern/qhull/user.o
In file included from /usr/include/bits/posix1_lim.h:157,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:122,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/syslimits.h:7,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:11,
                 from qhull_a.h:31,
                 from user.c:41:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
make[2]: *** [/home/tux_lover/Downloads/blender-2.49b/obj/linux-glibc2.10.1-i386/extern/qhull/user.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1


After logging in as SU (even though I can use sudo which I installed from the repos)
make: *** No rule to make target `checkinstall'.  Stop.


AND I have added a request for the new version, which has been out for a few months now.

Online muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: convert tar.gz to rpm to install application with synaptic
« Reply #9 on: December 12, 2009, 12:43:07 PM »
this package uses "cmake" .. configure wont work

when in the folder with the code code directory, type(just copy and paste) ..each line is a separate command and you must press "enter" first before going the next command

mkdir build ; cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local   -DCMAKE_BUILD_TYPE=Release  . ..
make


the above command will build the package, you can then login as root and type "make install" to install it or use "checkinstall" to build an rpm and then login as root and use rpm to install it(rpm -Uvh package_name.rpm)

the program will be install in "/usr/local"
« Last Edit: December 12, 2009, 12:44:48 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: convert tar.gz to rpm to install application with synaptic
« Reply #10 on: December 12, 2009, 12:51:36 PM »

this package seem to create a self contained executable and it doesnt have the "install" routine ..after you have build it, there will be an executable called "blender" in the "bin" folder ..click it to see if it works and then you can move it manually to preferably "/usr/local/bin" and create a shortcut icon to it on your menu ..
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

emiliec15

  • Guest
Re: convert tar.gz to rpm to install application with synaptic
« Reply #11 on: December 12, 2009, 01:02:27 PM »
After I run this
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release . ..


The terminal gives me this:

LD_TYPE=Release . ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find PythonLibs  (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_PATH)
-- Found PythonInterp: /usr/bin/python2.5
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Configuring library bf_soundsystem
-- Configuring library bf_string
-- Configuring library bf_ghost
-- Configuring library bf_guardedalloc
-- Configuring library bf_bmfont
-- Configuring library bf_moto
-- Configuring library blender_CTR
-- Configuring library bf_memutil
-- Configuring library bf_decimation
-- Configuring library bf_IK
-- Configuring library blender_bop
-- Configuring library blender_ONL
-- Configuring library bf_elbeem
-- Configuring library blender_BSP
-- Configuring library extern_qhull
-- Configuring library extern_solid
-- Configuring library extern_bullet
-- Configuring library extern_ftgl
-- Configuring library extern_binreloc
-- Configuring library extern_glew
-- Configuring library bf_avi
-- Configuring library bf_nodes
-- Configuring library bf_blenkernel
-- Configuring library bf_blenlib
-- Configuring library bf_blenloader
-- Configuring library bf_blenpluginapi
-- Configuring library bf_imbuf
-- Configuring library bf_cineon
-- Configuring library bf_gpu
-- Configuring makesdna
-- Configuring library blender_python
-- Configuring library blender_radiosity
-- Configuring library bf_readblenfile
-- Configuring library blender_render
-- Configuring library src
-- Configuring library bf_yafray
-- Configuring library bf_ftfont
-- Configuring library bf_openexr
-- Configuring library bf_dds
-- Configuring library bf_kernel
-- Configuring library bf_blroutines
-- Configuring library bf_converter
-- Configuring library bf_expressions
-- Configuring library bf_logic
-- Configuring library bf_ketsji
-- Configuring library kx_network
-- Configuring library bf_ngnetwork
-- Configuring library bf_loopbacknetwork
-- Configuring library bf_common
-- Configuring library bf_dummy
-- Configuring library bf_rasterizer
-- Configuring library bf_oglrasterizer
-- Configuring library bf_scenegraph
-- Configuring library bf_bullet
-- Configuring library bf_sumo
-- Configuring library bf_videotex
-- Configuring blender
-- Removing library verse from blender linking because: not configured
-- Removing library bf_quicktime from blender linking because: not configured
-- Removing library extern_libopenjpeg from blender linking because: not configured
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENEXR_INC
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/imbuf/intern/openexr
PYTHON_INCLUDE_PATH (ADVANCED)
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/nodes
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/blenkernel
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/python
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/src
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/BlenderRoutines
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Converter
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Expressions
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/GameLogic
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Ketsji
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Ketsji/KXNetwork
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Rasterizer
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Physics/Bullet
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/VideoTexture
PYTHON_LIBRARY (ADVANCED)
    linked by target "blender" in directory /home/tux_lover/Downloads/blender-2.49b/source/creator
SDL_INCLUDE_DIR
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/intern/elbeem
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/nodes
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/blenkernel
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/blenlib
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/src
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/GameLogic
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Ketsji

-- Configuring incomplete, errors occurred!


???WHAT DO I DO???  Did I forget to install some dependency that I'm not aware of? 


Online muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: convert tar.gz to rpm to install application with synaptic
« Reply #12 on: December 12, 2009, 01:14:22 PM »

when the configuration stage complain about missed dependencies, go to synaptic and install development package of the missed dependency ..these packages usually end with "-devel"

the errors you got complain about "OPENEXR", go to synaptic and install "libopenexr-devel" and run cmake again ...do this for all complains you will get
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

emiliec15

  • Guest
Re: convert tar.gz to rpm to install application with synaptic
« Reply #13 on: December 12, 2009, 01:48:50 PM »
Ok, I think I understand but I don't know what to do to resolve these three things:

PYTHON_INCLUDE_PATH (ADVANCED)

PYTHON_LIBRARY (ADVANCED)

AND HERE IS THE OUTPUT in case someone wants to look it over and see if I missed anything else.


[tux_lover@localhost build]$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local   -DCMAKE_BUILD_TYPE=Release  . ..
-- Could NOT find PythonLibs  (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_PATH)
-- Configuring library bf_soundsystem
-- Configuring library bf_string
-- Configuring library bf_ghost
-- Configuring library bf_guardedalloc
-- Configuring library bf_bmfont
-- Configuring library bf_moto
-- Configuring library blender_CTR
-- Configuring library bf_memutil
-- Configuring library bf_decimation
-- Configuring library bf_IK
-- Configuring library blender_bop
-- Configuring library blender_ONL
-- Configuring library bf_elbeem
-- Configuring library blender_BSP
-- Configuring library extern_qhull
-- Configuring library extern_solid
-- Configuring library extern_bullet
-- Configuring library extern_ftgl
-- Configuring library extern_binreloc
-- Configuring library extern_glew
-- Configuring library bf_avi
-- Configuring library bf_nodes
-- Configuring library bf_blenkernel
-- Configuring library bf_blenlib
-- Configuring library bf_blenloader
-- Configuring library bf_blenpluginapi
-- Configuring library bf_imbuf
-- Configuring library bf_cineon
-- Configuring library bf_gpu
-- Configuring makesdna
-- Configuring library blender_python
-- Configuring library blender_radiosity
-- Configuring library bf_readblenfile
-- Configuring library blender_render
-- Configuring library src
-- Configuring library bf_yafray
-- Configuring library bf_ftfont
-- Configuring library bf_openexr
-- Configuring library bf_dds
-- Configuring library bf_kernel
-- Configuring library bf_blroutines
-- Configuring library bf_converter
-- Configuring library bf_expressions
-- Configuring library bf_logic
-- Configuring library bf_ketsji
-- Configuring library kx_network
-- Configuring library bf_ngnetwork
-- Configuring library bf_loopbacknetwork
-- Configuring library bf_common
-- Configuring library bf_dummy
-- Configuring library bf_rasterizer
-- Configuring library bf_oglrasterizer
-- Configuring library bf_scenegraph
-- Configuring library bf_bullet
-- Configuring library bf_sumo
-- Configuring library bf_videotex
-- Configuring blender
-- Removing library verse from blender linking because: not configured
-- Removing library bf_quicktime from blender linking because: not configured
-- Removing library extern_libopenjpeg from blender linking because: not configured
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PYTHON_INCLUDE_PATH (ADVANCED)
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/nodes
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/blenkernel
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/python
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/blender/src
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/BlenderRoutines
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Converter
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Expressions
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/GameLogic
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Ketsji
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Ketsji/KXNetwork
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Rasterizer
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/Physics/Bullet
   used as include directory in directory /home/tux_lover/Downloads/blender-2.49b/source/gameengine/VideoTexture
PYTHON_LIBRARY (ADVANCED)
    linked by target "blender" in directory /home/tux_lover/Downloads/blender-2.49b/source/creator

-- Configuring incomplete, errors occurred!

Online muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: convert tar.gz to rpm to install application with synaptic
« Reply #14 on: December 12, 2009, 02:10:19 PM »

its the same idea ..it complain about python, go to synaptic and install libpython2.5-devel and try again

the "checkinstall" command will not work because the package doesnt have "install" routine and it will complain about that ..you wont be able to make an rpm with this package using this command
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..