PDA

View Full Version : [ubuntu] Never got this right yet........



dede468
August 21st, 2010, 04:56 PM
I've never managed to install ANYthing via terminal if it came as a tar. Anyway, I have been trying again without success. I assume I'm missing a step. Please somebody show me what it is. Here's what terminal says....

fred@fred-laptop:~$ tar xvf h3d-v-0.9.tar.gz
h3d-v-0.9/
h3d-v-0.9/h3d.glade
h3d-v-0.9/src/
h3d-v-0.9/src/Makefile.am
h3d-v-0.9/src/support.h
h3d-v-0.9/src/support.c
h3d-v-0.9/src/main.c
h3d-v-0.9/src/interface.h
h3d-v-0.9/src/interface.c
h3d-v-0.9/src/callbacks.h
h3d-v-0.9/src/callbacks.c
h3d-v-0.9/src/interface.c.bak
h3d-v-0.9/src/interface.h.bak
h3d-v-0.9/src/Makefile.in
h3d-v-0.9/src/Makefile
h3d-v-0.9/src/.deps/
h3d-v-0.9/src/.deps/main.P
h3d-v-0.9/src/.deps/support.P
h3d-v-0.9/src/.deps/interface.P
h3d-v-0.9/src/.deps/callbacks.P
h3d-v-0.9/src/callback.back
h3d-v-0.9/src/.nfs000141df00000239
h3d-v-0.9/autogen.sh
h3d-v-0.9/configure.in
h3d-v-0.9/macros/
h3d-v-0.9/macros/Makefile.am
h3d-v-0.9/macros/aclocal-include.m4
h3d-v-0.9/macros/autogen.sh
h3d-v-0.9/macros/compiler-flags.m4
h3d-v-0.9/macros/curses.m4
h3d-v-0.9/macros/gnome-bonobo-check.m4
h3d-v-0.9/macros/gnome-common.m4
h3d-v-0.9/macros/gnome-fileutils.m4
h3d-v-0.9/macros/gnome-gettext.m4
h3d-v-0.9/macros/gnome-ghttp-check.m4
h3d-v-0.9/macros/gnome-gnorba-check.m4
h3d-v-0.9/macros/gnome-guile-checks.m4
h3d-v-0.9/macros/gnome-libgtop-check.m4
h3d-v-0.9/macros/gnome-objc-checks.m4
h3d-v-0.9/macros/gnome-orbit-check.m4
h3d-v-0.9/macros/gnome-print-check.m4
h3d-v-0.9/macros/gnome-pthread-check.m4
h3d-v-0.9/macros/gnome-support.m4
h3d-v-0.9/macros/gnome-undelfs.m4
h3d-v-0.9/macros/gnome-vfs.m4
h3d-v-0.9/macros/gnome-x-checks.m4
h3d-v-0.9/macros/gnome-xml-check.m4
h3d-v-0.9/macros/gnome.m4
h3d-v-0.9/macros/linger.m4
h3d-v-0.9/macros/need-declaration.m4
h3d-v-0.9/macros/Makefile.in
h3d-v-0.9/macros/Makefile
h3d-v-0.9/Makefile.am
h3d-v-0.9/NEWS
h3d-v-0.9/README
h3d-v-0.9/AUTHORS
h3d-v-0.9/ChangeLog
h3d-v-0.9/stamp-h.in
h3d-v-0.9/po/
h3d-v-0.9/po/ChangeLog
h3d-v-0.9/po/POTFILES.in
h3d-v-0.9/po/Makefile.in.in
h3d-v-0.9/po/POTFILES
h3d-v-0.9/po/Makefile.in
h3d-v-0.9/po/Makefile
h3d-v-0.9/po/h3d.pot
h3d-v-0.9/po/stamp-cat-id
h3d-v-0.9/po/cat-id-tbl.c
h3d-v-0.9/acconfig.h
h3d-v-0.9/pixmaps/
h3d-v-0.9/pixmaps/wall.xpm
h3d-v-0.9/pixmaps/door.xpm
h3d-v-0.9/pixmaps/zoomin.xpm
h3d-v-0.9/pixmaps/zoomout.xpm
h3d-v-0.9/pixmaps/one2one.xpm
h3d-v-0.9/pixmaps/delete.xpm
h3d-v-0.9/pixmaps/save.xpm
h3d-v-0.9/pixmaps/open.xpm
h3d-v-0.9/pixmaps/new.xpm
h3d-v-0.9/pixmaps/csalogo.png
h3d-v-0.9/pixmaps/box.xpm
h3d-v-0.9/pixmaps/tree.xpm
h3d-v-0.9/aclocal.m4
h3d-v-0.9/intl/
h3d-v-0.9/intl/ChangeLog
h3d-v-0.9/intl/Makefile.in
h3d-v-0.9/intl/VERSION
h3d-v-0.9/intl/bindtextdom.c
h3d-v-0.9/intl/cat-compat.c
h3d-v-0.9/intl/dcgettext.c
h3d-v-0.9/intl/dgettext.c
h3d-v-0.9/intl/explodename.c
h3d-v-0.9/intl/finddomain.c
h3d-v-0.9/intl/gettext.c
h3d-v-0.9/intl/gettext.h
h3d-v-0.9/intl/gettextP.h
h3d-v-0.9/intl/hash-string.h
h3d-v-0.9/intl/intl-compat.c
h3d-v-0.9/intl/l10nflist.c
h3d-v-0.9/intl/libgettext.h
h3d-v-0.9/intl/linux-msg.sed
h3d-v-0.9/intl/loadinfo.h
h3d-v-0.9/intl/loadmsgcat.c
h3d-v-0.9/intl/localealias.c
h3d-v-0.9/intl/po2tbl.sed.in
h3d-v-0.9/intl/textdomain.c
h3d-v-0.9/intl/xopen-msg.sed
h3d-v-0.9/intl/po2tbl.sed
h3d-v-0.9/intl/Makefile
h3d-v-0.9/ABOUT-NLS
h3d-v-0.9/install-sh
h3d-v-0.9/config.h.in
h3d-v-0.9/mkinstalldirs
h3d-v-0.9/missing
h3d-v-0.9/INSTALL
h3d-v-0.9/COPYING
h3d-v-0.9/Makefile.in
h3d-v-0.9/configure
h3d-v-0.9/config.log
h3d-v-0.9/config.h
h3d-v-0.9/config.cache
h3d-v-0.9/config.status
h3d-v-0.9/stamp-h
h3d-v-0.9/h3d
h3d-v-0.9/Makefile
h3d-v-0.9/wood.jpg
h3d-v-0.9/window.jpg
h3d-v-0.9/door.gif
h3d-v-0.9/grass.jpg
h3d-v-0.9/door.jpg
h3d-v-0.9/gh3d/
h3d-v-0.9/gh3d/door.xpm
h3d-v-0.9/gh3d/wall.xpm
h3d-v-0.9/gh3d/zoomin.xpm
h3d-v-0.9/gh3d/zoomout.xpm
h3d-v-0.9/gh3d/ZoomIn24.gif
h3d-v-0.9/gh3d/ZoomOut24.gif
h3d-v-0.9/gh3d/Zoom24.gif
h3d-v-0.9/gh3d/Undo24.gif
h3d-v-0.9/gh3d/New24.gif
h3d-v-0.9/gh3d/Open24.gif
h3d-v-0.9/gh3d/Delete24.gif
h3d-v-0.9/gh3d/Save24.gif
h3d-v-0.9/gh3d/new.xpm
h3d-v-0.9/gh3d/open.xpm
h3d-v-0.9/gh3d/save.xpm
h3d-v-0.9/gh3d/delete.xpm
h3d-v-0.9/gh3d/csalogo.png
h3d-v-0.9/gh3d/tree.xpm
h3d-v-0.9/gh3d/box.xpm
h3d-v-0.9/gh3d/h3d
h3d-v-0.9/samples/
h3d-v-0.9/samples/house.2d
h3d-v-0.9/samples/square.2d
fred@fred-laptop:~$ sudo apt-get install h3d-v-0.9
[sudo] password for fred:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package h3d-v-0.9
fred@fred-laptop:~$ ls
CYCAS3 Downloads Music Templates
Desktop examples.desktop Pictures Videos
Distro h3d-v-0.9 Public
Documents h3d-v-0.9.tar.gz SweetHome3DExample2.sh3d

Am I in the wrong directory and if so there's something I don't understand?

philinux
August 21st, 2010, 04:59 PM
There's a README file in there. Have a browse.

oldos2er
August 21st, 2010, 05:47 PM
https://help.ubuntu.com/community/CompilingEasyHowTo

https://help.ubuntu.com/community/CompilingSoftware

apt-get only looks to the repositories, not source code on your hard disk.

dede468
August 21st, 2010, 10:10 PM
There's a README file in there. Have a browse.

Thanks - I already did. It tells you how to delete objects when running the prog which I haven't yet managed to run.


apt-get only looks to the repositories, not source code on your hard disk.

Won't mention the thread as it may embarrass them but I used the apt-get as it was posted as an answer to someone else a while ago who like me, couldn't compile a tar either. Will take a look at the links you posted though - thanks.

Paul820
August 21st, 2010, 10:39 PM
That's source code. You need to build the package with a compiler.
Open a terminal and type

sudo apt-get install build-essential
When that has finished you need to cd to the directory where the source code is

cd /to/the/directory
In the terminal type


./configure
make
sudo make install

Press enter after each of the above lines.

dede468
August 23rd, 2010, 09:06 AM
OK, thanks Paul.

I installed build-essential but got a message saying I needed checkinstall so re-did it like this:

apt-get install build-essential checkinstall

Everything seemed to go well this time as there were no errors shown.

I then typed in ./configure and got a "no such file or directory"

Is it telling me that ./configure doesn't exist or the file I want to compile doesn't exist?

As a test, I went to the directory containing the file I want to compile and typed ./configure but again "no such file or directory" even though I have checked the file is there with ls. Sounds to me as if ./configure doesn't exist.

Simple questions:

Do I just go to the directory containing the file I want to compile [like this]

cd /home/fred

or do I go into this file [like this]

cd /home/fred/h3d-v-0.9

[I have tried both without result].

Both the original tar and the decompressed file itself are in the same directory.

:confused:

Paul820
August 23rd, 2010, 12:23 PM
I have downloaded the source, but, big but, there are some links in there that link to a folder in / that has a different filename. Now these links are invalid on my system so configure won't go any further, yes, there is a configure in there so you might be in the wrong directory.

You need to be in the top-level directory, where the yellow door is. I will attach a screenshot of the locked files, i'm wondering if you have the same. Also you can see the configure file in the top right-hand corner. Configure, does start, but it fails as those locked files are invalid.

dede468
August 23rd, 2010, 12:44 PM
Thanks Paul. Yes I have the same problem and therefore the correct directory would appear to be the one I used as /home/fred/h3d-v-0.9 which takes me to the same page as your thumbnail. They're invalid on mine too and appear to be empty.

The curious thing is that for you, config starts, but for me it never gets that far and simply says no such file or directory.

Anyway, the exercise hasn't been wasted as even though it doesn't work, I'm a bit more comfortable with the process which was one of the main goals. I now understand the sequence of events more clearly.

Many thanks for your help...

dede468
August 23rd, 2010, 12:58 PM
UPDATE:

I have tried exactly the same thing on the desktop comp which has ubuntu 10.04 .

The [I]desktop machine however, says:

loading cache ./config.cache
configure: error: can not find install-sh or install.sh in . ./.. ./../..

Now I'm wondering why they are giving different results..... have checked for typos etc. :confused:

d3v1150m471c
August 23rd, 2010, 01:04 PM
what program are you trying to compile?

Paul820
August 23rd, 2010, 01:08 PM
Yes, i get the same thing, it is because the links are trying to link to /usr/share/automake/ but ubuntu 10.04 is /usr/share/automake-1.11/
The folder has a different name that's why the links are invalid. I have tried making new links by opening the /usr/share/automake-1.11/ folder and middle clicking and drag it into the h3d-v-0.0 folder, but it adds link to to the start of the filename, which is invalid for ./configure, it just wants the name of the file without the link to on the front. So it ends up being called link to install.sh(example), with a padlock on it that only root can change.

dede468
August 23rd, 2010, 02:04 PM
d3v1150m471c

h3d-v-0.9

It's a home design / architectural prog. There seem to be very few of these of the simpler type for Linux.