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

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

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

Post 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!
Last edited by cucamonga on Wed Oct 27, 2010 7:05 am, edited 1 time in total.

tenta
Level 1
Level 1
Posts: 23
Joined: Tue Oct 26, 2010 6:55 am

Re: How to intall without .tar or .deb

Post by tenta »

> but the terminal doesn't recognize the "configure" command
Try ./configure

marco

cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

Re: How to intall without .tar or .deb

Post by cucamonga »

I typed ./configure alone with man and --help in the terminal with no luck.
I'm still doing something wrong :(

User avatar
Elisa
Level 6
Level 6
Posts: 1356
Joined: Wed Aug 18, 2010 6:46 am

Re: How to intall without .tar or .deb

Post 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:
Linux/Unix is about freedom, Windows about slavery.

md5 / sha1 check [how-to for NEWBIES] :idea:

Score: 43 I have some hippie in me. Cool, man 8)
Take the elitemrp.net "Are you a Hippie?" Test

cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

Re: How to intall without .tar or .deb

Post by cucamonga »

Thx for the input, but I'm a little lost...repo.??? gcc??? :shock:

User avatar
Elisa
Level 6
Level 6
Posts: 1356
Joined: Wed Aug 18, 2010 6:46 am

Re: How to intall without .tar or .deb

Post 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).
Linux/Unix is about freedom, Windows about slavery.

md5 / sha1 check [how-to for NEWBIES] :idea:

Score: 43 I have some hippie in me. Cool, man 8)
Take the elitemrp.net "Are you a Hippie?" Test

cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

Re: How to intall without .tar or .deb

Post 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.

cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

Re: How to intall without .tar or .deb

Post 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?

User avatar
Elisa
Level 6
Level 6
Posts: 1356
Joined: Wed Aug 18, 2010 6:46 am

Re: How to intall without .tar or .deb

Post 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:
Linux/Unix is about freedom, Windows about slavery.

md5 / sha1 check [how-to for NEWBIES] :idea:

Score: 43 I have some hippie in me. Cool, man 8)
Take the elitemrp.net "Are you a Hippie?" Test

cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

Re: How to intall without .tar or .deb

Post 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.

User avatar
Elisa
Level 6
Level 6
Posts: 1356
Joined: Wed Aug 18, 2010 6:46 am

Re: How to intall without .tar or .deb

Post 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)
Linux/Unix is about freedom, Windows about slavery.

md5 / sha1 check [how-to for NEWBIES] :idea:

Score: 43 I have some hippie in me. Cool, man 8)
Take the elitemrp.net "Are you a Hippie?" Test

cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

Re: How to intall without .tar or .deb

Post by cucamonga »

It rains a lot in Bergen :(

User avatar
beefstu
Level 5
Level 5
Posts: 652
Joined: Tue Dec 29, 2009 10:22 am
Location: Southampton, UK

Re: How to intall without .tar or .deb

Post 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
Please go through the steps here when posting a question. Once your question has been resolved, edit the original question post and add [Solved] to the subject. Both of these will help others use the forum effectively.

gimcrack
Level 1
Level 1
Posts: 23
Joined: Fri Jun 05, 2009 9:25 am

Re: How to intall without .tar or .deb

Post 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.

cucamonga
Level 1
Level 1
Posts: 8
Joined: Tue Oct 26, 2010 7:43 am

Re: How to intall without .tar or .deb

Post 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:

User avatar
beefstu
Level 5
Level 5
Posts: 652
Joined: Tue Dec 29, 2009 10:22 am
Location: Southampton, UK

Re: How to intall without .tar or .deb

Post by beefstu »

No problem, could you edit your first post and change the subject to include [Solved] please?
Please go through the steps here when posting a question. Once your question has been resolved, edit the original question post and add [Solved] to the subject. Both of these will help others use the forum effectively.

Post Reply

Return to “Newbie Questions”