mercurialeclipse

476 views
Skip to first unread message

liza long

unread,
Mar 25, 2016, 5:00:54 AM3/25/16
to ns-3-users
Hi
I installed ns3.24.1 on Ubuntu 14.04 , Eclipse cdt 4.5.2 mars2 , mercury , jdk 1.8.0.

Ns3 works fine. However,  to edit the ns3 codes in eclipse, I try to install the plugin mercurialeclipse. I searched the Internet a lot and tried every link that people said would work while nothing works and i can not install this plugin.

Can please someone help me through it?

thanks in advance

Tommaso Pecorella

unread,
Mar 25, 2016, 5:27:51 AM3/25/16
to ns-3-users
Hi,

use the Eclipse marketplace (Help -> Eclipse Marketplace), then search for mercurial. It should show you some results, and the one you have to install is pretty obvious (the most recent one).
As a side note, ns-3.25 has been released a couple days ago. Due to the sheer amount of new things in it, I'd suggest to use it.

Cheers,

T.

liza long

unread,
Mar 25, 2016, 5:49:44 AM3/25/16
to ns-3-users
Thank you so much for your quick answer.

I already tried the marketplace before I tried install new software in the help menu, it does not show the plugin. I need to say that I am in a country that is under sanction and also filtering rules of the government! for example we can not open google code website. I guess this is the problem since everything else works perfectly .
so do you think my problem will be solved with ns3.25?
once again thank you so much for your help

Tommaso Pecorella

unread,
Mar 25, 2016, 6:18:09 AM3/25/16
to ns-3-users
Hi,

yes, this can be definitely the issue. ns-3.25 will help you with ns-3, not with the mercurial plugin.
However, things are a bit more complex, as the real question is: do you need mercurial ?

Mercurial is used to update constantly ns-3. If you work with a numbered ns-3 release (i.e., not with ns-3-dev) you can safely skip it. It is also not strictly necessary if you plan to contribute to the code, although it could be highly advisable to use ns-3-dev if you plan to submit your code for review.

If you really think yo need mercurial, tho, the first thing to do is to make sure that it will work. As consequence, the question is: are you sure that you can clone a ns-3 repository ? If it works, then you're not firewall against mercurial and the plugin will help. Otherwise... well, installing the plugin will not help.
As a side note, the plugin needs a working mercurial installation, so...

Cheers,

T.

liza long

unread,
Mar 25, 2016, 6:28:03 AM3/25/16
to ns-3-users
Thank you very much again and sorry to take your time

I just need this plugin for simpler editing the NS3 codes, that's all . 
I am not using the ns-3-dev .
can you please kindly let me know how can I clone  ns-3 repository to determine being behind firewall or no?

Truly appreciate you help

Tommaso Pecorella

unread,
Mar 25, 2016, 9:30:49 AM3/25/16
to ns-3-users
Hi,

if you have mercurial installed, try the command:

if it works, it should create a folder named "ns-3-dev" with all the latest ns-3 inside.
As a side note, it's also how ns-3-allinone is kept updated. If you downloaded ns-3-allinone, the command "./download.py" does the same.

Cheers,

T.

liza long

unread,
Mar 25, 2016, 10:10:22 AM3/25/16
to ns-3-users
Dear Tommaso

First of all thanks a lot for your help

The command hg clone http://code.nsnam.org/ns-3-dev/ successfully was done (downloaded 3168 files) in the ns-3-dev folder. So does it mean I can finally get mercurial eclipse plugin to work?

Also when I use marketplace, it shows the mercurial eclipse plugin version 2.1 but when I click install and then confirm, is failed with the following error:
No repository found at http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable.

I am searching the Internet since the last week, and apparently some other users also have the same problem but unfortunately I did not find any practical solution.

I really appreciate your help.

Tommaso Pecorella

unread,
Mar 25, 2016, 11:21:04 AM3/25/16
to ns-3-users
Hi,

it could be a momentary problem. If it persist, you can install the plugin manually.
The procedure is outdated here:
but I never installed it manually, so I don't know if there are dependencies or problems.

The plugin code can be downloaded directly from here:

If you can't download it from Atalassian, let me know and I'll post the jar here.

Cheers,

T.

liza long

unread,
Mar 25, 2016, 11:08:55 PM3/25/16
to ns-3-users
Hi
Thank you very much for your help

I already have done this with no success. I downloaded the com.vectrace.MercurialEclipse_2.1.1.201309042324.jar (with 3.21MB size) from the link: https://www.openhub.net/p/mercurialeclipse/rss_articles and copy it in the plugin folder (as I read it somewhere in the Internet). According to the article, after doing this when eclipse is opened the plugin must be installed but it did not.Do you think this process is wrong?

I click on the link that you provided and it redirected me to a new page (https://bitbucket.org/mercurialeclipse/main), going to the download part there is one file 546eefec8833.zip with 13.2MB size and I could not download it.

Thank you very much for your time and your kind help

Tommaso Pecorella

unread,
Mar 26, 2016, 5:56:57 AM3/26/16
to ns-3-users
Hi,

I forgot to ask you what is your OS (Linux, MacOS ?) I'll see if I can pack the stuff for you.

T.

liza long

unread,
Mar 26, 2016, 10:27:14 AM3/26/16
to ns-3-users
Hi

The OS I am using is Ubuntu 14.04, 64 bits

Thank you very much for all your help


On Friday, March 25, 2016 at 1:30:54 PM UTC+4:30, liza long wrote:

Tommaso Pecorella

unread,
Mar 26, 2016, 12:40:39 PM3/26/16
to ns-3-users
Try the attached one.

The archive contains the plugin and a folder to be added in the "features" folder. Perhaps the thing you missed was this one.
I hope it'll work.

Cheers,

T.
merc.tgz

liza long

unread,
Mar 27, 2016, 2:18:26 AM3/27/16
to ns-3-users
Dear Tommaso

I do not know how to thank you because as you said, what I missed was the xml file. After adding that to the feature folder everything works perfectly fine.

I really appreciate your kind help while I can not thank you enough.



On Friday, March 25, 2016 at 3:00:54 AM UTC-6, liza long wrote:

Tommaso Pecorella

unread,
Mar 27, 2016, 5:19:50 AM3/27/16
to ns-3-users
You're welcome. I'm glad you fixed it finally.

Cheers,

T.

Gameel Hunish

unread,
Mar 11, 2017, 6:08:13 PM3/11/17
to ns-3-users
Hi,

I have the same problem , I am new in ns3 

Knidly , Could you please tell how to fix it step by step ?

Thank you in advance

Tommaso Pecorella

unread,
Mar 11, 2017, 6:12:13 PM3/11/17
to ns-3-users
By doing the same stuff that was described in this thread ?

T.

madan

unread,
Mar 12, 2017, 3:42:18 AM3/12/17
to ns-3-...@googlegroups.com

Hi,

       Yes, there are problems with latest versions of eclipse, if you do not download from the related repository when executing the step "install new software", given in the instructions for installing eclipse for ns-3. The version of "mylyn" is often not the right one shown in the "available web sites"...I suppose you are using the CDT for eclipse...

2. Having said that I would like to ask you you to check your .bash_aliases file and make sure that the LD_LIBRARY_PATH has :"/home/usrname/repos/ns-3-allinone/ns-3-dev or ns3-version name/build"... You would also need to ensure that glog has been installed (c.f. ns-3 installation wicki). These also cause path related errors when you open a file...

Regards,

madan

------------------------------------------------------------

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages