compilling code problems...

Don´t be shy, Linux is fun! =)
Post Reply
PLeXroD
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 146
Joined: 25 Oct 2005, 16:00
18
Location: Denmark
Contact:

compilling code problems...

Post by PLeXroD »

Code: Select all

plexrod@linuxHP:~> ~/dls tar vxjf Azureus_2.5.0.4_linux.tar.bz2
bash: /home/plexrod/dls: is a directory
plexrod@linuxHP:~>
isnt this wrong compilling code?

i mean :
x - untar the file
z - uncompress the file
v - verbose - so you can see what is happening
f - what follows is the file you want to untar

where i use j cause im untaring an ".tar.bz2" file - but then something should hapen right? but didn't...

then i jumped into manually untar the tarball into an directory.. and then jumping right to the ./configure part then again the same thing nothing happends...

did i do anything wrong or ?
-Never try to be uncommon, instead of that only realize it's you that is common...-

-In grater common sence Linux is better than MS Windows-

-Never try to hack platform, instead of that, only make security and teach other to do that to-

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

um, are you trying to extract the .tar.bz2 file into the dls-directory?
it don't work that way...:wink:

simply extract the package this way:

Code: Select all

tar -jxvf package_name.tar.bz2
then move into the newly created folder (most likely named Azureus_something) and run the ./configure script if there is one (if not skip directly to make). if you get a permission error when trying to run ./configure check the file permission with

Code: Select all

ls -al filename
make sure the file is executable.

if you want to have all extracted files in the dls-folder simply move the whole folder

Code: Select all

mv azureus-foldername /path-to-dls-folder
or, if you only want to move the content of the Azureus-folder:

Code: Select all

cd Azureus-foldername
mv * /path-to-dls-folder
:wink:

User avatar
LaBlueGirl
Suckopithicus chickasaurus
Suckopithicus chickasaurus
Posts: 513
Joined: 22 Mar 2006, 17:00
18
Location: Brussel
Contact:

Post by LaBlueGirl »

Since it's a tar.bz2, your commands include the 'j' and not 'the usuals'.

You never unpacked the ball properly so you can't do anything with it.

Read the README first, as always.

Just by browing inside the file itself, you'll see if it needs to be configured or not. (It'll have 'configure' in a main folder).

Sometimes, some programs have extra crap inside which needs to be untarred too. I forget with Azureus b/c it's been awhile, but by browing through the file you'll see it.

DON'T compile it in any other folder other than the one you want it in. (Yeah, I've done this as you can tell).

Some progs in Linux create their own folders. I've screwed up (temporarily, eh?) a few times putting things where they don't belong :oops:

I *do* recall Azureus doesn't care, though.

My .02 centjes.
"Hey, Crash!
Ever tried walking with no legs?

It's real slow!"
~Crunch, Crash Bandicoot TTR

PLeXroD
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 146
Joined: 25 Oct 2005, 16:00
18
Location: Denmark
Contact:

Post by PLeXroD »

ok i get the first part...

i untarred the tarball now:

Code: Select all

ls -al convmv-1.10
totalt 163
drwxr-xr-x  2 plexrod users   272 2006-06-26 03:03 .
drwxr-xr-x 54 plexrod users  2952 2007-03-09 08:35 ..
-rw-r--r--  1 plexrod users  2391 2006-06-26 03:03 Changes
-rwxr-xr-x  1 plexrod users 22581 2006-06-25 20:46 convmv
-rw-r--r--  1 plexrod users   148 2004-02-01 00:13 CREDITS
-rw-r--r--  1 plexrod users 17993 2003-07-12 14:21 GPL2
-rw-r--r--  1 plexrod users   798 2005-12-09 17:20 Makefile
-rw-r--r--  1 plexrod users   593 2006-06-26 03:03 MD5sums
-rw-r--r--  1 plexrod users 92160 2006-06-26 02:46 testsuite.tar
-rw-r--r--  1 plexrod users   519 2006-06-26 02:54 TODO
-rw-r--r--  1 plexrod users     5 2006-06-26 03:03 VERSION
and changed the dir to:

Code: Select all

plexrod@linuxHP:~> cd convmv-1.10
plexrod@linuxHP:~/convmv-1.10>
and now i try to run the makefile, file:

Code: Select all

plexrod@linuxHP:~/convmv-1.10>./Makefile
bash: ./Makefile: Access Denied
as you can see that didnt work out, how could that be?
-Never try to be uncommon, instead of that only realize it's you that is common...-

-In grater common sence Linux is better than MS Windows-

-Never try to hack platform, instead of that, only make security and teach other to do that to-

User avatar
LaBlueGirl
Suckopithicus chickasaurus
Suckopithicus chickasaurus
Posts: 513
Joined: 22 Mar 2006, 17:00
18
Location: Brussel
Contact:

Post by LaBlueGirl »

PLeXroD wrote:ok i get the first part...

i untarred the tarball now:

Code: Select all

ls -al convmv-1.10
totalt 163
drwxr-xr-x  2 plexrod users   272 2006-06-26 03:03 .
drwxr-xr-x 54 plexrod users  2952 2007-03-09 08:35 ..
-rw-r--r--  1 plexrod users  2391 2006-06-26 03:03 Changes
-rwxr-xr-x  1 plexrod users 22581 2006-06-25 20:46 convmv
-rw-r--r--  1 plexrod users   148 2004-02-01 00:13 CREDITS
-rw-r--r--  1 plexrod users 17993 2003-07-12 14:21 GPL2
-rw-r--r--  1 plexrod users   798 2005-12-09 17:20 Makefile
-rw-r--r--  1 plexrod users   593 2006-06-26 03:03 MD5sums
-rw-r--r--  1 plexrod users 92160 2006-06-26 02:46 testsuite.tar
-rw-r--r--  1 plexrod users   519 2006-06-26 02:54 TODO
-rw-r--r--  1 plexrod users     5 2006-06-26 03:03 VERSION
and changed the dir to:

Code: Select all

plexrod@linuxHP:~> cd convmv-1.10
plexrod@linuxHP:~/convmv-1.10>
and now i try to run the makefile, file:

Code: Select all

plexrod@linuxHP:~/convmv-1.10>./Makefile
bash: ./Makefile: Access Denied
as you can see that didnt work out, how could that be?
change the permissions: chmod 777
"Hey, Crash!
Ever tried walking with no legs?

It's real slow!"
~Crunch, Crash Bandicoot TTR

PLeXroD
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 146
Joined: 25 Oct 2005, 16:00
18
Location: Denmark
Contact:

Post by PLeXroD »

Code: Select all

plexrod@linuxHP:~/convmv-1.10> chmod
chmod: missing operand
Prøv 'chmod --help' for more information.
plexrod@linuxHP:~/convmv-1.10> chmod --help
Brug: chmod [FLAG]... TILSTAND[,TILSTAND]... FIL...
  eller:  chmod [FLAG]... OKTAL-TILSTAND FIL...
  eller:  chmod [FLAG]... --reference=RFIL FIL...
Change the mode of each FILE to MODE.

  -c, --changes           like verbose but report only when a change is made
      --no-preserve-root  do not treat `/' specially (the default)
      --preserve-root     fail to operate recursively on `/'
  -f, --silent, --quiet   suppress most error messages
  -v, --verbose           output a diagnostic for every file processed
      --reference=RFILE   use RFILE's mode instead of MODE values
  -R, --recursive         change files and directories recursively
      --help     vis denne hjælpetekst og afslut
      --version  vis versionsinformation og afslut

Each MODE is of the form `[ugoa]*([-+=]([rwxXst]*|[ugo]))+'.

Repport error to <bug-coreutils@gnu.org>.
plexrod@linuxHP:~/convmv-1.10> chmod -c
chmod: missing operand
try 'chmod --help' for more information.
plexrod@linuxHP:~/convmv-1.10> chmod -R
chmod: missing operand
try 'chmod --help' for more information.
plexrod@linuxHP:~/convmv-1.10>

Last edited by PLeXroD on 09 Mar 2007, 02:41, edited 1 time in total.
-Never try to be uncommon, instead of that only realize it's you that is common...-

-In grater common sence Linux is better than MS Windows-

-Never try to hack platform, instead of that, only make security and teach other to do that to-

User avatar
LaBlueGirl
Suckopithicus chickasaurus
Suckopithicus chickasaurus
Posts: 513
Joined: 22 Mar 2006, 17:00
18
Location: Brussel
Contact:

Post by LaBlueGirl »

PLeXroD wrote:yeah but wha is the code to change them?
I gave it :)

In the shell, go into the directory you want to change (Azureus, no?)
type 'chmod 777' but without the single quotes.
The 777 makes it r-w-x etc.

LBG

Edited for link:
http://catcode.com/teachmod/
"Hey, Crash!
Ever tried walking with no legs?

It's real slow!"
~Crunch, Crash Bandicoot TTR

User avatar
LaBlueGirl
Suckopithicus chickasaurus
Suckopithicus chickasaurus
Posts: 513
Joined: 22 Mar 2006, 17:00
18
Location: Brussel
Contact:

Post by LaBlueGirl »

PLeXroD wrote:

Code: Select all

plexrod@linuxHP:~/convmv-1.10> chmod
chmod: missing operand
Prøv 'chmod --help' for more information.
plexrod@linuxHP:~/convmv-1.10> chmod --help
Brug: chmod [FLAG]... TILSTAND[,TILSTAND]... FIL...
  eller:  chmod [FLAG]... OKTAL-TILSTAND FIL...
  eller:  chmod [FLAG]... --reference=RFIL FIL...
Change the mode of each FILE to MODE.

  -c, --changes           like verbose but report only when a change is made
      --no-preserve-root  do not treat `/' specially (the default)
      --preserve-root     fail to operate recursively on `/'
  -f, --silent, --quiet   suppress most error messages
  -v, --verbose           output a diagnostic for every file processed
      --reference=RFILE   use RFILE's mode instead of MODE values
  -R, --recursive         change files and directories recursively
      --help     vis denne hjælpetekst og afslut
      --version  vis versionsinformation og afslut

Each MODE is of the form `[ugoa]*([-+=]([rwxXst]*|[ugo]))+'.

Repport error to <bug-coreutils@gnu.org>.
plexrod@linuxHP:~/convmv-1.10> chmod -c
chmod: missing operand
try 'chmod --help' for more information.
plexrod@linuxHP:~/convmv-1.10> chmod -R
chmod: missing operand
try 'chmod --help' for more information.
plexrod@linuxHP:~/convmv-1.10>

You didn't put the 777 in it, chmod is the command to change the permissions and the 777 tels it what permissions to change it to.
"Hey, Crash!
Ever tried walking with no legs?

It's real slow!"
~Crunch, Crash Bandicoot TTR

PLeXroD
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 146
Joined: 25 Oct 2005, 16:00
18
Location: Denmark
Contact:

Post by PLeXroD »

thnx again and b_b longtime no see ehh?
-Never try to be uncommon, instead of that only realize it's you that is common...-

-In grater common sence Linux is better than MS Windows-

-Never try to hack platform, instead of that, only make security and teach other to do that to-

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

um, when you have changed the permissions of Makefile to 777 and made it executable that way don't start it by ./Makefile, simply type:

Code: Select all

make
and the compiling will start...when done with compiling:

Code: Select all

make install
that's it! :wink:

yeah Plex, where have you been man? :-k
hope to see you again on IRC soon... :wink:

User avatar
LaBlueGirl
Suckopithicus chickasaurus
Suckopithicus chickasaurus
Posts: 513
Joined: 22 Mar 2006, 17:00
18
Location: Brussel
Contact:

Post by LaBlueGirl »

bad_brain wrote:um, when you have changed the permissions of Makefile to 777 and made it executable that way don't start it by ./Makefile, simply type:

Code: Select all

make
and the compiling will start...when done with compiling:

Code: Select all

make install
that's it! :wink:
Is ./Makefile even an option?
I've never heard of that before...
(But there's a lot I don't know about Linux, either)

Don't think I read in-depth enough on PleX's post lol.
"Hey, Crash!
Ever tried walking with no legs?

It's real slow!"
~Crunch, Crash Bandicoot TTR

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

make is the command (well, actually it's an application) which automatically runs the compiling process, the Makefile file is parsed by make and contains (additional) instructions for the compiling process like needed dependencies for example. so you are right, ./Makefile can't work and it's not even necessary to make the file executable .... :wink:

Post Reply