LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-27-2013, 04:05 PM   #1
abcd12
LQ Newbie
 
Registered: May 2013
Posts: 8

Rep: Reputation: Disabled
Error in tar command


hI . i tried to install ns2.31 in ubuntu 10.04 . But i was blocked in the first command .
Code:
tar -xzf ns-allinone-2.31.tar.gz
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
I have tried a lot of times . But i have always this i don't know why.please help me why i have always this error.
Thanks
 
Old 05-27-2013, 04:22 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

A corrupt package. Suggest : Delete "ns-allinone-2.31.tar.gz".
And download a new one from ..
http://sourceforge.net/projects/nsna...allinone-2.31/ >
> http://surfnet.dl.sourceforge.net/pr...ne-2.31.tar.gz

Unpack : tar xvf ns-allinone-2.31.tar.gz :
The v option will show the complete unpack, line by line.

-
 
Old 05-27-2013, 04:55 PM   #3
abcd12
LQ Newbie
 
Registered: May 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Error in tar command

Thank you a lot for replying . I do so but i have the same result
Code:
ns-allinone-2.31/ns-2.31/tcl/test/test-output-energy/dsdv.Z
ns-allinone-2.31/ns-2.31/tcl/test/test-output-energy/dsr.Z
ns-allinone-2.31/ns-2.31/tcl/test/test-output-energy/brdcast0.Z
ns-allinone-2.31/ns-2.31/tcl/test/test-all-jobs
ns-allinone-2.31/ns-2.31/tcl/test/test-suite-tcpVariants.tcl
ns-allinone-2.31/ns-2.31/tcl/test/test-suite-jobs.tcl
ns-allinone-2.31/ns-2.31/tcl/test/test-suite-manual-routing.tcl
ns-allinone-2.31/ns-2.31/tcl/test/test-all-rfc793edu
ns-allinone-2.31/ns-2.31/tcl/test/sk-30-3-3-1-1-6-64.tcl
ns-allinone-2.31/ns-2.31/tcl/test/test-output-plm/
ns-allinone-2.31/ns-2.31/tcl/test/test-output-plm/PLM.Z
ns-allinone-2.31/ns-2.31/tcl/test/test-all-ecn
ns-allinone-2.31/ns-2.31/tcl/test/test-suite-rh.tcl
ns-allinone-2.31/ns-2.31/tcl/test/test-suite-message.tcl
ns-allinone-2.31/ns-2.31/tcl/test/test-output-wireless-lan/
ns-allinone-2.31/ns-2.31/tcl/test/test-output-wireless-lan/gaf.Z
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
I have deleted and retrying but i still have this !!
 
Old 05-27-2013, 05:10 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by abcd12 View Post
Thank you a lot for replying . I do so but i have the same result
I have deleted and retrying but i still have this !!
You have a corrupt package, as previously stated, or you are trying to uncompress that package before it's finished downloading. I downloaded it, and it uncompressed just fine.

There are no problems with the source package as given to you by knudfl. The tar command may need to be "tar -xvfz" for a gzipped file....
 
Old 05-28-2013, 04:58 AM   #5
abcd12
LQ Newbie
 
Registered: May 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Error in tar command

Thank you a lot . the command tar works now . But when the installation stopped in OTCL installation step and give me this error
Code:
 undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Erreur 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
Old 05-28-2013, 05:57 AM   #6
abcd12
LQ Newbie
 
Registered: May 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Error in tar command

Thank you a lot for your helpful site . I installed successfully ns2.31 but when i tape the $ source ~/.bashrc command i have this result :
bash: LIB:/usr/local/lib:no file or directory of this type

I have used the set variables here:
Code:
# LD_LIBRARY_PATH
OTCL_LIB=/home/abc/ns-allinone-2.31/otcl-1.13
NS2_LIB=/home/abc/ns-allinone-2.31/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_
LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/abc/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/abc/ns-allinone-2.31/bin:/home/abc/ns-allinone-2.31/tcl8.4.14/unix:/home/abc/ns-allinone-2.31/tk8.4.14/unix
NS=/home/abc/ns-allinone-2.31/ns-2.31/
NAM=/home/ines/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
Please help me .Thanks
 
Old 05-28-2013, 06:55 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
when I type the $ source ~/.bashrc
Don't. Not required for Linux.
This will do : 1) cd ns-allinone-2.31/ns-2.31/ && sudo make install
2) sudo apt-get install xgraph ( The ns2 xgraph is never working.)
3) Nam : Please use a "nam package". Post # 4 here
http://www.linuxquestions.org/questi...04-a-842109/#4
> nam-1.14.i586.tar.gz
cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/


-

Last edited by knudfl; 05-28-2013 at 09:19 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Invalid tar magic" error msg. when I try to tar ldmud *.tar file in DSL pixxi451 Linux - Newbie 4 07-04-2010 08:32 AM
tar command linux error salimshahzad Linux - Newbie 2 03-08-2010 08:02 AM
Can you spot the error in my tar command? just a man Linux - Newbie 12 12-17-2009 07:16 AM
tar-command not found while compiling glibc-libidn-2.7.tar.bz2 of lfs6.3 aditya_gpch Linux From Scratch 1 05-13-2008 11:27 PM
tar command : error: file changed as we read it sneezesnoeze Linux - General 2 04-05-2004 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration