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

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
cucamonga

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
tenta

Re: How to intall without .tar or .deb

Post by tenta »

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

marco
cucamonga

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 :(
Elisa

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

Re: How to intall without .tar or .deb

Post by cucamonga »

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

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).
cucamonga

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

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

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

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

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)
cucamonga

Re: How to intall without .tar or .deb

Post by cucamonga »

It rains a lot in Bergen :(
beefstu

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
gimcrack

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

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

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

Return to “Beginner Questions”