LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install tar.gz or convert to rpm (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-tar-gz-or-convert-to-rpm-185684/)

vzzt! 05-25-2004 11:26 AM

how to install tar.gz or convert to rpm
 
how to install tar.gz
or how to convert them to rpm and install

Peacedog 05-25-2004 11:28 AM

have a look at this

http://www.linuxquestions.org/questi...threadid=45094

i would suggest searching for an rpm first though

http://rpmfind.net/

good luck.

jago25_98 05-25-2004 11:30 AM

usually:

- use checkinstall or stow

- tar zxvf foo.tar.gz
- cd foo
- ./configure --prefix /usr/local/stow/foo
- make
- #make install

- #mkdir /usr/local/stow/foo
- #stow foo

vzzt! 05-25-2004 12:47 PM

thanks peacedog

jago
please add more details
i do not know where to write these commands etc

Komakino 05-25-2004 01:49 PM

In a terminal window...konsole, gnome-terminal, xterm, aterm, eterm...the list goes on....

vzzt! 05-25-2004 02:53 PM

ok, i open console and i type:

tar zxvf foo.tar.gz

but i get some error msg or like that

can ANYONE tell me 5-10 simple steps to follow?

for example:
1. open internet explorer
2. File > open > browse to My documents > select
the picture you want > open

?

i am so disappointed, that i am thinking to delete
the linux partition just because i cannot the f4kin
winmodem drivers so i can connect to internet.
i have been asking here and there 3 days now :(
there is not 1 person to give a nice, simple
explanation to somebody that is not a linux expert!

i still thank all the people who try to help
thanks for your time and info

Nis 05-25-2004 03:01 PM

What winmodem drivers are you trying to install? I agree with PEACEDOG and find a rpm to install if you can. It will make everything much easier: as root
Code:

rpm -vhi foo.rpm
If you cannot find a rpm, or the rpm complains of dependencies and won't install, try this in a terminal (xterm, konsole, gnome-terminal, etc) (comments are in parens):
Code:

tar xfz foo.tar.gz (if it doesn't work here, try getting that source again)
cd foo/ (or similar)
less README (read any instructions here)
less INSTALL (read any instructions here as well)
./configure (notice the . 'period' before the / important!)
make (wait for the stuff to fly by, could take awhile)
(if not error messages do below, otherwise return here and post error messages)
make install (as root, otherwise will not work)
(follow any more instructions placed out in README and/or INSTALL)

I wish you luck and less frustration. Stick to it and we'll work through it together. :)

lyceum 05-25-2004 03:22 PM

what specific error message does tar return? i know that some versions of tar require that the operation comes first, ie. the order of the parameters would be xzvf and not zxvf. i would have to know the error message that you got to know for sure, but it's worth a try.

hope this helps.

vzzt! 05-26-2004 04:57 AM

It is ok with me to stub some files until
the modem is ready to work, but some ppl
with good intensions, cannot always
offer proper support-help

Thank you for replying Nis and Lyceum.
My frustration is obvious.

I downloaded the linux driver from
http://members.driverguide.com/ums/i...5564479v674491
login (user id): driver
pass: all

the modem is internal (notebook)
the name of the driver file is: slmdm-2.6.16.tar.gz
the kernel version of my Mandrake 9.2 is: 2.6.22
I know that I must login as ROOT to install
I know that I will type some commands at “console”

the READ file of the driver has the following
information about installation.


Installation
============
1. Unpack tar.gz package file:
$ gzip -dc slmdm-2.6.X.tar.gz | tar xf -
2. 'cd' to package directory:
$ cd slmdm-2.6.X
3. Review and edit (if need) 'Makefile'.
Note: Probably you will want to correct in Makefile path to your
local linux kernel header files:
KERNEL_INCLUDES=/path/to/linux/include
Another way is to pass command line the parameter while
running 'make':
$ make KERNEL_INCLUDES=/path/to/linux/include ...
4. Run 'make' command to compile package:
$ make
5. Install.
If you are going to use AMR/CNR/PCI modem type (as superuser):
# make install-amr
, or
# make install-usb
6. Config modem country.
You can configure you current country by using module parameters
'country' or 'country_code'.
Add 'options' directive line to file '/etc/modules.conf':
options slmdm country=<MyCountry>
, for example
options slmdm country=USA
, or use module parameter while module loading:
# modprobe slmdm country=<MyCountry>
Use 'slver -c' to see list of all supported countries and their
codes (utility 'slver' may be found in package directory).
Note: Command ATI7 shows installed country setting.
7. Using the modem.
Installation will automatically create character tty device entry
'/dev/ttySL0' with major number 212 and symbolic link '/dev/modem'.
Use one of them as modem device for your dialing application.
8. Uninstallation.
In package directory just type:
# make uninstall

Using RPM
=========
1. Build SRPM and RPM from tar.gz package:
In order to build RPM and SRPM run command:
# rpm -ta slmdm-2.6.X.tar.gz
It will build in your RPM directory:
- slmdm-2.6.X-Y.src.rpm - Source SRPM package
- slmdm-2.6.X-Y.i386.rpm - Core Modem RPM package
- slmdm-amr-2.6.X-Y.i386.rpm - AMR/CNR/PCI Modem driver
- slmdm-usb-2.6.X-Y.i386.rpm - USB Modem driver
2. Install
To install Modem core package run:
# rpm -i /path/to/slmdm-2.6.X-Y.i386.rpm
To install Modem hw driver run:
# rpm -i /path/to/slmdm-amr-2.6.X-Y.i386.rpm
if you are going to use AMR/CNR/PCI Modem, or
# rpm -i /path/to/slmdm-usb-2.6.X-Y.i386.rpm
if you are going to use SmartUSB56 Modem.

Note: currently you cannot install and use both AMR/CNR/PCI and USB Modems.
3. Uninstall.
# rpm -e slmdm slmdm-<amr|usb>

Getting Started
===============
After successful installation and configuration modules will be loaded on demand if you are using 'kmod' in linux kernel.
Also you can load modules by hand:
# modprobe slamrmo
if you are using AMR/CNR/PCI modem, or
# modprobe slusb
if you are using SmartUSB56 Modem.

Troubleshooting
===============

If you get an error message during installation/configuration or loading the modules like 'slmdm.o: unresolve symbols ...' it may mean that package was prepared for different linux kernel version that you have.
Run command 'slver -k' (may be found in package directory) to see what version of linux kernel was used for preparing package.

Unfortunately it is no so flexible currently (we are working about it) to support all versions of linux kernel. So try to obtain appropriate release of the modem package or upgrade kernel.
=============== =============== =============== ===============

Nis 05-26-2004 07:28 AM

I would suggest going the route of building a rpm. It looks like they've took pains to make that process easy. Good luck. :)

davholla 05-26-2004 07:57 AM

If you get any error message, copy them from the terminal into a text file and then paste them here.


All times are GMT -5. The time now is 01:28 PM.