LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2013, 10:52 AM   #1
naveove
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Rep: Reputation: Disabled
Question Trouble installing zip packages! Have tried terminal and package managers!


Have tried to install packages from an old November 2011 Linux format DVD. I believe they are zip files, and I am trying to install them as deb files in the terminal. I have tried this and won't work: I enter superuser with su
dpkg -i name_of_file.deb/zip(I tried both). When I download the package it automatically goes to download and is a zip. I tried extracting it and putting it in my home directory. Please include detailed instr. on how to download and install software and packages from websites and how to use the package manager and the like for I am completely new to Linux and have no idea what I'm doing. I have linux mint 15. Thank you very much!
 
Old 07-01-2013, 10:57 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
You are more likely downloading the source of a program, which isnt installable by a package manager because it isnt a package. You have to compile the source.

Generally this means unzipping it to a directory, and from that directory running:

./configure
make
make install

But your experience may differ. Here is a good article on how to do it, with an explanation of the difference between packages and source.

http://www.thegeekstuff.com/2012/06/...l-from-source/
 
Old 07-01-2013, 11:23 AM   #3
naveove
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Unhappy What?

So,I downloaded the package,\it goes to my downloads, I move it to home directory, extract it there, then open it in terminal, and type in the current name of the file, type in ./configure and it says there is no such file or directory. What's wrong?
 
Old 07-01-2013, 12:42 PM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,162

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
It's generally best to use software from your distro's repository. The items distributed by magazines are often new, testing versions of programs which may not fit in with the rest of your installation. That sort of problem can be solved, but it's not a job for a beginner.

Just run the Ubuntu Software Centre or the Synaptic package manager and you can look through classified lists of available items, or use the search feature to find things like video editors or vector-graphics editors.

What have you got when you extract from the zip file? Is it a file or a whole folder? If you've got source code, it will be in a folder which will also contain a file called README. Not surprisingly, that's a good place to start!
 
Old 07-01-2013, 12:47 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Quote:
.. type ./configure and it says there is no such file or directory.
Well, then tell which software, it is about : <name>.zip
 
Old 07-01-2013, 08:48 PM   #6
naveove
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
it is in source code. How do I install it from source code?
 
Old 07-01-2013, 08:55 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by naveove View Post
it is in source code. How do I install it from source code?
there is no simple one size fits all procedure that we can easily give you. However, we can likely help you quite easily if there is a *specific* piece of software you'd like to install. So, is there something in particular your like to install? If so, please give us details.

Evo2.
 
Old 07-01-2013, 08:59 PM   #8
naveove
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Unknown Horizons, Minetest c55, Python, and Flightgear.(I'm trying to download Unknown Horizons first as an experiment.)
 
Old 07-01-2013, 09:11 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

the starting point for installing any software should always be your package manager. for example, just now I did the following:
Code:
apt-cache search horizons
which returned the following:
Code:
unknown-horizons - 2D realtime strategy simulation
I did the same thing for "minetest", "python" and "flightgear" with similar results. This confirmed that these programs are already pacakged for me and as such I can install them by running the following command as root:
Code:
apt-get install unknown-horizons
And similar for the other programs. The bottom line here is that each of the programs you listed are most likely already packaged for you and as such are trivial to install: you should not need to be manually downloading things from the web or from magazine cds. If "apt-cache search foo" does not yield what you want then feel free to ask back for help on how to install "foo".

Evo2.
 
Old 07-02-2013, 01:48 AM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
The above posts are GREAT advice
almost all the time it is MUCH easier to use the already built and packaged software for your distro
-- in your case a debian based distro

that said

it can be fun and very educational to build software
BUT it takes some time to learn things
-- A LOT of time sometimes --


in a source package there are normally ( but NOT always ) two files
README
INSTALL
or a folder called "Doc"
readme and install MIGHT ??? have the build instructions
but most of the time a standard "boilerplate" stating in 500 words
Code:
./configure
make
su
---- your root password ---
make install
or they might tell you to read the documentation on there web site
the normal everyday tools on linux are gcc and "Autotools"
but not always
it might use "cmake" , " scons" or " qmake " or something else

--- example : cmake --

one example of a slightly non standard build process is the astronomy Planetarium program " Stellarium "
http://www.stellarium.org/
http://stellarium.org/wiki/index.php...ation_on_Linux

it uses "cmake"

AND
you have to make sure that the source for ALL the build dependencies ARE INSTALLED and working !!!
http://stellarium.org/wiki/index.php/Build_Dependencies

this is a lot of work

Code:
sudo apg-get install  stellarium
is much easier

-- example for scons ---

a HP calculator ( using the original HP rom's)
-- i use the hp 41c and the hp 15c on my openSUSE install
( i still have my 15c , but my 41 was stolen a few years back,it was my first REAL calculator )

http://nonpareil.brouhaha.com/
-- i will NOT go into detail on building this
------------------


example for "qmake"

the QT4 ( not the qt3/kde3 or GTK 2.4) build of Celestia

-- i have posted the instructions for this all over the web
and read the celestia forum
http://www.shatters.net/forum/



but building programs from source is a way to LEARN things
but it takes time, patients , reading , MORE READING , and a lot more patients .

A good and rather complicated project ( but easy to do )
is build " The Gimp" photo editor
it is VERY VERY well documented with a ton of guides on the web

Last edited by John VV; 07-02-2013 at 02:01 AM.
 
1 members found this post helpful.
Old 07-02-2013, 08:21 AM   #11
naveove
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
When I type in ./configure it says bash: ./configure: No such file or directory. And when I type in apt-cache search horizons, it continues on to a new line and nothing happens. The same happens for flightgear and minetest. When I type in python countless lines of code appear. Does my package manager not have those packages? I have Linux Mint 15(olivia).
 
Old 07-02-2013, 08:36 AM   #12
naveove
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
I have looked in my package manager and done a quick filter search for minetest, flightgear, and unknown horizons and found nothing. I then went to Linux Mint Communities software portal and found flight gear clicked on it and clicked install. An error message then pops up saying could not find package flightgear. I tried this with a few others too and had the same result. Did I do something wrong?
 
Old 07-02-2013, 08:07 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
for "unknown-horizons" what exactly did you download ?

from their download page on their website
http://www.unknown-horizons.org/download/linux/

they give you the debian/ubuntu/mint instructions
-- the first thing --
-- for mint --
install the repo it is in
Code:
sudo add-apt-repository ppa:christoph-egger/unknown-horizons
then install it
Code:
sudo apt-get update && sudo apt-get install unknown-horizons
and it is installed

for "installing from source" link
http://www.unknown-horizons.org/down...urces/s-linux/
you first MUST install ALL the build dependencies !
Code:
apt-get install -y build-essential scons libalsa-ocaml-dev libsdl1.2-dev libboost-dev libsdl-ttf2.0-dev  libsdl-image1.2-dev libvorbis-dev libalut-dev python2.7 python-dev libboost-regex-dev libboost-filesystem-dev libboost-test-dev swig zlib1g-dev libopenal-dev git python-yaml libxcursor1 libxcursor-dev swig
from the FACT that "scons" is in the REQUIRED SOFTWARE this is NOT a normal everyday build
but one that is using "scons"

there will NOT be any "autotools" "configure" file nor "Makefile" file .
the normal build instructions will NOT work !

Warning:
heed the warning they give !!!!!!!!
Quote:
BEFORE attempting to compile and run Unknown Horizons,
REMOVE any FIFE and Unknown Horizons packages installed using your package manager
(usually named unknown-horizons and python-fife or fife).


Grab and build from github the "FIFE " program USING scons
( see the build intructions for this - a link is posted at the bottom of the page )
https://github.com/fifengine/fifengine/wiki/scons

Grab and build from github the "unknown-horizons" using the included Python build script
Code:
./setup.py build_i18n && ./run_uh.py

this is not a normal everyday strait forward build

and will be a lot of work

Last edited by John VV; 07-02-2013 at 08:10 PM.
 
Old 07-02-2013, 08:38 PM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

Quote:
Originally Posted by naveove View Post
I have looked in my package manager and done a quick filter search for minetest, flightgear, and unknown horizons and found nothing.
Ok it seems that you are experiencing one of the big problems with using little boutique distros: lack of packages. I had a quick check and although all these games are in Debian they did not make their way down into Mint. Searching on packages.ubuntu.com I found that unknown-horizons, flightgear and minetest are all packaged in the universe section. AFAIK, Mint is supposed to be binary compatible with Ubuntu (but please check for yourself), so you should be able to install them using apt-get if you first add the relevant Ubuntu repositories to your sources.list.

However, as I said please first check for yourself about using binary Ubuntu packages in Mint. If it turns out they are not binary compatible then the cleanest and easiest thing to do would be do install from the source deb packages. I can help with instructions if you interested in that approach.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing new packages upper_room Linux - General 1 12-27-2009 03:53 PM
error in installing packages from terminal varun_agwl Linux - Newbie 2 09-20-2009 02:22 PM
installing package using terminal.... subashk80 Linux - Newbie 3 11-27-2008 05:03 PM
Installing packages which lxlighttpd zip unzip lxphp lxzend robocap Linux - Server 1 07-24-2007 06:54 PM
trouble installing Info-Zip r_b Linux - Software 0 02-08-2002 10:00 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration