LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
 
Search this Thread
Old 12-22-2012, 02:45 AM   #16
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14

Quote:
Originally Posted by Nwe Nwe View Post
Now, it works well.Thx to all.
clearly I'm late .
I'm glad that it works for you , good luck
 
Old 12-22-2012, 10:49 PM   #17
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Hello everyone,
What kind of IDE is used to write Tcl or C++ program on Ubuntu. Please kindly share the knowledge coz the text editor is not comforable to write code. Any help would be appreciated.
 
Old 12-23-2012, 10:55 PM   #18
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656
Moved: This thread is more suitable in Linux Software and has been moved accordingly to help your question get the exposure it deserves.
I also marked it as unsolved since you have a follow up question.

Last edited by jschiwal; 12-23-2012 at 10:56 PM.
 
Old 01-15-2013, 04:54 PM   #19
zero0
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
j'ai tout fait; copié lettre par lettre votre procédé Mouna, mais j'ai ca en retour... et a cela à 3 reprises :

"linkstate/ls.h:137:20: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
Ns make failed! "

j'ai le meme system d'exploit que toi...
 
Old 01-15-2013, 05:07 PM   #20
zero0
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
can someone help me please ? I don't know why but , I followed right well Mouna's step but I've just this as a response :

linkstate/ls.h:137:20: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!

I have ubuntu 12.10
 
Old 01-16-2013, 02:35 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,266

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Post #20 @zero0 : Welcome to LQ.

Please read post # 8 :

( cd ns-allinone-2.35/ )
export CC=gcc-4.4 CXX=g++-4.4 && ./install
 
Old 01-16-2013, 06:38 AM   #22
zero0
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
thank you for knudfl .

but I can see and modify this line to " CC " in Makefile.in but
where can I find this ? " CXX "
 
Old 01-16-2013, 08:05 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,266

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
# 22.

Why would you modify any files ? ( Makefile.in ).
Everything happens automatically when you do the command :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

Please try, and you will see that the Makefile
in all the main applications afterwards say :
CC = gcc-4.4
CPP = g++-4.4


-

Last edited by knudfl; 01-16-2013 at 08:07 AM.
 
Old 01-17-2013, 04:47 AM   #24
zero0
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
you're so helpful...

I did it : "export CC=gcc-4.4 CXX=g++-4.4 && ./install"

but the same problem happens...
so sorry to bother you... but please help me
 
Old 01-17-2013, 05:21 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,266

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
# 24.

Which OS are you using ? Name and version, please.
? And the architecture →
→ This command will tell if it is i686 or x86_64 : uname -m
 
Old 01-17-2013, 05:31 AM   #26
zero0
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
i686

---------- Post added 01-17-13 at 06:32 AM ----------

ubuntu 12.10
 
Old 01-17-2013, 06:40 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,266

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
# 20, # 24.

Either delete ns-allinone-2.35/ and start from scratch
with a new unpacked ns-allinone-2.35.tar.gz .
Or run 'make clean' , 'make distclean' in :
tcl8.5/unix/, tk8.5/unix/, otcl*/, tclcl*/, ns-2.35/,
and afterwards delete all 'Makefile', if still present.

Then you can do : export CC=gcc-4.4 CXX=g++-4.4 && ./install
.. and expect no errors.

-
 
Old 01-18-2013, 02:00 AM   #28
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by zero0 View Post
can someone help me please ? I don't know why but , I followed right well Mouna's step but I've just this as a response :

linkstate/ls.h:137:20: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!

I have ubuntu 12.10
Bonjour zero0 , vous avez trouvé la solution ? , si non , essayez ça:
modifier la ligne 137 du fichier linkstate/ls.h

Code:
 void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
par

Code:
 void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
Bon travail
 
Old 01-18-2013, 08:18 AM   #29
zero0
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
merci pour ton intervention Mouna. j'ai suivi ta demarche, j'ai abouti a ca :





Please put /home/menkpro/Desktop/ns-allinone-2.35/bin:/home/menkpro/Desktop/ns-allinone-2.35/tcl8.5.10/unix:/home/menkpro/Desktop/ns-allinone-2.35/tk8.5.10/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/menkpro/Desktop/ns-allinone-2.35/otcl-1.14, /home/menkpro/Desktop/ns-allinone-2.35/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/menkpro/Desktop/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.35; ./validate


c'est normal ? c'est qu'est ce que je dois faire now ? je tiens a te signaler que je suis nouveau dans ce systeme bien que je l'aime bcp dejà ... (linux)
 
Old 01-19-2013, 02:48 AM   #30
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by zero0 View Post
merci pour ton intervention Mouna. j'ai suivi ta demarche, j'ai abouti a ca :





Please put /home/menkpro/Desktop/ns-allinone-2.35/bin:/home/menkpro/Desktop/ns-allinone-2.35/tcl8.5.10/unix:/home/menkpro/Desktop/ns-allinone-2.35/tk8.5.10/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/menkpro/Desktop/ns-allinone-2.35/otcl-1.14, /home/menkpro/Desktop/ns-allinone-2.35/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/menkpro/Desktop/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.35; ./validate


c'est normal ? c'est qu'est ce que je dois faire now ? je tiens a te signaler que je suis nouveau dans ce systeme bien que je l'aime bcp dejà ... (linux)
Normalment c'est bon , mais pour s'assurer tapez ns pour voir si la commande marche ou pas .
 
  


Reply

Tags
edca, hcca, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 02:10 PM
LXer: Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Reposito LXer Syndicated Linux News 0 11-06-2007 08:50 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM


All times are GMT -5. The time now is 05:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration