Page 1 of 1

How to intall without .tar or .deb [Solved]

Posted: Tue Oct 26, 2010 8:24 am
by cucamonga
I've downloaded a file from this site:

"http://highered.mcgraw-hill.com/sites/0 ... lator.html"

but when I tried to install it I discovered that it was just a .zip folder with a bunch of files! :(

I've opened the readme file, and read that I should just type "configure" and "make" and thats about it. but the terminal doesn't recognize the "configure" command... :?:

What should i do? am i supposed to install it or just run it as it is?

any feedback will be much appreciated!

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 8:27 am
by tenta
> but the terminal doesn't recognize the "configure" command
Try ./configure

marco

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 8:45 am
by cucamonga
I typed ./configure alone with man and --help in the terminal with no luck.
I'm still doing something wrong :(

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 9:07 am
by Elisa
Well, you didn't install gcc, flex and maybe 'wish' what u can do from repo.
Then start again
./configure

./configure worked ok but, however, after my next -
make (in terminal) I got his error :)

Code: Select all

/usr/bin/gcc -g  -o lc3sim \
		lc3sim.o sim_symbol.o  -lcurses
/usr/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make: *** [lc3sim] Error 1
In the readme is something like:

DEBIAN USERS (and possibly some other distributions of Linux):
After you configure, remove "-lcurses" from the OS_SIM_LIBS
definition in the Makefile. (Or you can install the curses library,
but the routines that I use are in the standard library in the
Debian distribution. In other distributions, they're in the
curses library. One day, I'll extend configure to check for it.)


But I'm not sure how to set it to exclude :?

P.S. [update] Open the Makefile in gedit and lookup "-lcurses". At that line make "#" in the beginning so the line will be ignored.
Then no error received but still not sure what that package should do... :lol:

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 9:24 am
by cucamonga
Thx for the input, but I'm a little lost...repo.??? gcc??? :shock:

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 9:29 am
by Elisa
Newbies always forget to include in their questions their system info.
So every1 suppose they use linuxMINT :wink:

Well, repo is a slang (repositary) / place where u can choose any app to download.
Click on Menu and then click on Synaptic package manager.

Then in the search box type

gcc
and make the gcc 'mark for installation' when u click on it by left mouse button
Then type

flex
and do same steps.

Then slap the upper menu green check aka Apply and u have then those 2 apps installed :wink:

Then again in terminal type
./configure and the just
make

And what should that package do like ? (why do wanna install it, what is should do? :D Just curious).

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 12:42 pm
by cucamonga
the program is supposed to simulate and compile code written in the assembly-language(.asm files), bin and hex.

Ok, thx for all your help, but when i type this ./configure in the terminal, i get "bash: ./configure: No such file or directory".

I'm starting to suspect I'm too much of a newbie for this newbie sub-forum.

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 1:06 pm
by cucamonga
No...wait I got it,
I did changed the makefil as you suggested after the configuration, and now there are several "kjørbare filer" (Norwegian for executable files) in the folder. but nothing happens when i doubleclik on them... :?

Any ideas?

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 1:31 pm
by Elisa
Hej ! :D
Hello to Norge :D I plan to come to Norge sometimes, Norge is cool as well as Sverige :wink:

download this .pdf / help: http://highered.mcgraw-hill.com/sites/d ... 3_unix.pdf

where is some more info how to use it.

P.S. Do u know "skolelinux" ? AFAIK it's norsk :wink:

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 2:19 pm
by cucamonga
I wouldn't call Norge or Sverige (or Finnland for that mater) freezing countries , not cool. There are definitely more interesting places to go.

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 2:23 pm
by Elisa
cucamonga wrote:I wouldn't call Norge or Sverige (or Finnland for that mater) freezing countries , not cool. There are definitely more interesting places to go.
:lol:

You are really funny person (bara bra :wink: )
Cool means in slang like very good in many views of point in this meaning, understand ? 8)
Super, awesome, very nice etc. etc. etc. :lol:

And from Norge I like Bergen and places around it 8)

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 3:03 pm
by cucamonga
It rains a lot in Bergen :(

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 6:01 pm
by beefstu
try doing

Code: Select all

apt install build-essential
then going to where you extracted the files and doing

Code: Select all

./configure
. It will probably not make it all the way through as you will probably have some dependencies not met, for example, I just tried it and got "Cannot locate flex binary." so a quick search in the repositories

Code: Select all

apt search flex
shows it exists in there so

Code: Select all

apt install flex
that installed so ran

Code: Select all

./configure
again and it seemed to work fine (will install in the place that you extracted the files) then just type

Code: Select all

 make
(then "make install" if you so wish)

To run it, if you are still in the same directory type ./lc3sim and it should start

Re: How to intall without .tar or .deb

Posted: Tue Oct 26, 2010 10:20 pm
by gimcrack
To compile C/C++ programs using gcc you must have the build-essential package installed. The build-essential package contains all the headers that C/C++ need like <stdio.h> or <iostream.h>. To install build-essential type the following in a terminal:

sudo apt-get install build-essential
flashplugin-nonfree
After build-essential is installed you will then be able to compile C/C++ programs. This package should also be installed by default in Ubuntu IMO. As far as C/C++ programming skills and syntax there are numerous texts and online sources out there that can help you.

Re: How to intall without .tar or .deb

Posted: Wed Oct 27, 2010 6:17 am
by cucamonga
:o so the program runs in the terminal, no doubleclicking involved.

Great, now it seems to be working,

Thx for all your help and patience! :wink:

Re: How to intall without .tar or .deb

Posted: Wed Oct 27, 2010 6:35 am
by beefstu
No problem, could you edit your first post and change the subject to include [Solved] please?