![]() |
|
#41
|
|||
|
|||
Re: run script command on ns2.26Quote:
On my system yum info libX11-devel gives Code:
Also: Code:
Regards, Dave |
|||
|
#42
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Thank very much for your answer. I instaled the X development library and the tk8.4.14 was succeesfully installed. But , now I have another error message, this is: Installing and cross-linking command (.n) docs tk8.4.14 installation succeeded. ================================================== ========== * Build OTcl-1.13 ================================================== ========== No .configure file found in current directory Continuing with default options... checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that g++ can handle -O2... no checking standard STL is available... no Checking files ................. checking for X11 header files can't find X includes otcl-1.13 configuration failed! Exiting ... Please check www.isi.edu for common problems and bug fixes. I already have installed tk.i386 8.4.13-5.el5_1.1 installed tk-devel.i386 8.4.13-5.el5_1.1 installed I don't know the source of the reason of the error message. I hope you can give me an idea how to solve this. Thank you very much for your help Regards Dennis Arturo |
|
#43
|
|||
|
|||
Re: run script command on ns2.26Quote:
It is looking for /usr/include/X11/Intrinsic.h, which is in the libXt-devel package. You can try installing that package, but it (and libX11-devel) should have been installed as part of the "X Software Development" group. I guess you didn't install that whole thing. I always install all development tools, including all of the optional packages, when creating a new Linux system. You can try Code:
Maybe the better thing would be Code:
If you try the latter and you get some kind of message about xrestop having a later version installed, ignore it and go back to ns install. Or, if you want to see what it is going to do, go to yumex, from the Applications->tools-Yum Extender menu item. On the left-hand side, the second icon down is "Group View." Expand "Development Environments," then "Development." Click "X Software Development," and make sure all items in the list on the right-hand side are checked. Click "Process Queue," then "OK." I hardly ever use yumex (or other gui frontends for yum), since I find that they seem to be slower, and although they let you see the packages and their contents a little better, the actual update processing is less informative than running yum install or yum update from a command line. But then, I am an old command-line type of guy. I'm funny that way. Regards, Dave "Sometimes I think that I must be the last bottom-up guy in this crazy top-down world." ---davekw7x |
|
#44
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Thank you very much for your help, thanks for the time I really appreciate it!!! The installation worked fine. I receive the following message Nam has been installed successfully. Please compile your gt-itm & sgb2ns separately. Ns-allinone package has been installed successfully. Here are the installation places: tcl8.4.14: /home/Dennis/ns-allinone-2.31/{bin,include,lib} tk8.4.14: /home/Dennis/ns-allinone-2.31/{bin,include,lib} otcl: /home/Dennis/ns-allinone-2.31/otcl-1.13 tclcl: /home/Dennis/ns-allinone-2.31/tclcl-1.19 ns: /home/Dennis/ns-allinone-2.31/ns-2.31/ns nam: /home/Dennis/ns-allinone-2.31/nam-1.13/nam xgraph: /home/Dennis/ns-allinone-2.31/xgraph-12.1 ---------------------------------------------------------------------------------- Please put /home/Dennis/ns-allinone-2.31/bin:/home/Dennis/ns-allinone-2.31/tcl8.4.14/unix:/home/Dennis/ns-allinone-2.31/tk8.4.14/unix into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph. IMPORTANT NOTICES: (1) You MUST put /home/Dennis/ns-allinone-2.31/otcl-1.13, /home/Dennis/ns-allinone-2.31/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/Dennis/ns-allinone-2.31/tcl8.4.14/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.31; ./validate Even the succeesfl installation, I gave some questin regarding the last steps (sorry but I'm newbie in this regard). How can I compile your gt-itm & sgb2ns separately? The message mention that I have to add some paths to my environment variable, my question is should I do it in the .bash_profile or in the .bashrc? Thank you very much again and thank you for your answers. Best regards Dennis Arturo |
|
#45
|
|||
|
|||
Re: run script command on ns2.26Quote:
Quote:
Here's the thing: The "right" place to put it is .bash_profile in your home directory. That is executed whenever you log in as yourself. The file .bashrc is executed every time you open a new console window (after you have logged in). Now, it happens that the default .bash_profile for Centos actually executes .bashrc, so if you put some stuff in .bashrc to append to the $PATH and other environment variables, it will be executed once when you log in and again whenever you open a new console window (so $PATH has that stuff twice). Kind of messy. (But it doesn't cause any problems---or, as basketball announcers say from time to time: "No harm, no foul."). Here's the danger (not fatal, but kind of annoying): If you change .bash_profile, there is no elegant way of testing it without logging out and back in again. If you have introduced an error, then you may find that you can't log in as yourself. You have to log in as root and try to fix your user .bash_profile and try to log in as yourself again. Tedious. So here's my recommendation. 1. Make sure you logged in as yourself and not as root. You will be in your home directory. 2. Copy the .bashrc in your home directory to something like bashrc_save. 3. Edit .bashrc and put the following lines somewhere (probably near the bottom): Code:
Now save the new .bashrc Don't close the console window that you are using to edit .bashrc! Open a new console window. If it fails, then it might tell you where it found an error. Try editing .bashrc to fix the problem. If it seems hopelessly balled up, then copy bashrc_save to .bashrc and start again. If it opens, then you can look at the environment variables if you want to. In the newly opened window; Code:
If the new stuff looks OK, execute Code:
Then cd into the ns-2.31 directory and enter Code:
Or, maybe you want to save all of the validation messages, so you could try Code:
Then in another console window navigate to the ns-2.31 directory and Code:
(It takes a loooong time and does just oodles and oodles of tests.) Regards, Dave Footnote: If you have tested the new stuff in .bashrc and you want to move it to .bash_profile to make things a littler "cleaner," you can do it, but I don't think it's necessarily bad just to leave it in .bashrc. If it ain't broke... |
|
#46
|
|||
|
|||
Re: run script command on ns2.26Quote:
I didn't get that one. Near the top of install.log (line 94) I had the following: Code:
Then at line 1367: Code:
So maybe we have a little more detective work to do. Exciting, isn't it? See Footnote. Regards, Dave Footnote: "We can face our problem. We can arrange such facts as we have with order and method." Hercule Poirot --- in Murder on the Orient Express |
|
#47
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Thank you very much for your prompt answer. Well, I check carefully the log and I found this lines: ================================================== ========== * Build Stanford GraphBase ================================================== ========== Making sgb ..................... test_sample test_sample.exe echo "Congratulations --- the tests have all been passed." Congratulations --- the tests have all been passed. touch certified cp: cannot create regular file `../gt-itm/lib/libgb.a': No such file or directory ================================================== ========== * Build GT-ITM ================================================== ========== sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing.. ================================================== ========== * Build zlib ================================================== ========== I found that SGB Stands for Stanford Graph Base, which supose to be installed before GT-ITM, but it seems that is an error in the last part of the installation. May be this is the reason why the GT-ITM can not be installed, because it seemed that they depend on the sgb. My questions are: I tried to find the sgb lib with yum but I could't. Do you know if this library belongs to an specific Development Package? I didn't install all the development packages in the installation process. Do you think is advisable to install in this moment all the development packages? Will them be the cause of future problems? Should I declare another repository in order to get the sgb wth yum? Thank you very much for your help and time. By the way, Hercule Poirot --- in Murder on the Orient Express is totally right. Thank you very much once again. Best Regards Dennis Arturo |
|
#48
|
|||
|
|||
Re: run script command on ns2.26Quote:
Now open your install.log again and look at the first hundred or so lines. Here's what I see in mine: Code:
At what point do you see any discrepancy between yours and mine? Does your log file say that cweb was build successfully? The programs ctangle and cweb are used to build some sgb files in your distribution. (The cweb stuff was already in my system, since I use sometimes use TeX for documentation, but I think the ns distribution has everything it needs for this, so it should be able to build cweb.) Then it will build the sgb files. You shouldn't have to download anything else. Quote:
Quote:
That is not necessary in order to install ns, assuming you have everything that I showed in the first part of the install log file. Regards, Dave |
|
#49
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Thank you fro your prompt answer. Well this is the information I have: At what point do you see any discrepancy between yours and mine? This is the XGraph Code:
This is the CWeb Code:
And of course here is the Standford GraphBase Code:
There a lot of differences between yours and mine, may be there are other development related packages that I haven't installed ?????? Thank you very much for your help. Regards Dennis Arturo |
|
#50
|
|||
|
|||
Re: run script command on ns2.26Quote:
This time, read the Footnote first. Then come back here. Then... I have to apologize for my previous post. It was not from a "new" build, but was the result or rerunning install, so lots of stuff was already built and my install.log file left out a lot of stuff. When I delete everything, untar it again and run ./install, I get the same as yours up to the "congratulations" messages at the end of the Stanford GraphBase section that you show. (Mine proceeds merrily along and builds GT-ITM and the other stuff after that.) The error that you show at this point indicates either: 1. There is no file named libgb.a in directory sgb. (But I think that the make would have failed before that.) or 2. The directory gt-itm/lib does not exist or you don't have write privileges. So: from the ns-allinone-2.31: cd into sgb. See if there is a file named libgb.a. If there is not, then execute make tests from the sgb directory and tell me what happened. If that file is there, then from ns-allinone-2.31, do ls -l and make sure a directory named gt-itm is present and that you have rwx privileges. Execute a cd into gt-itm and do another ls -l. There should be a directory named lib, and you should have rw privileges there. Go back to the sgb directory and execute: Code:
Now what happens? Regards, Dave Footnote: You did do what I previously suggested? Installed the packages I recommended and did rm -rf ns-allinone-2.31 and untarred it again before the new install, right? |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web stats | fcolor | Web Design Forum | 10 | 12-Jul-2007 09:48 |
| Need Free Website Templates | sam_dezine | Web Design Forum | 8 | 06-Sep-2006 04:25 |
| Who Is A Web Designer ? | alicehopkins | Web Design Forum | 1 | 13-Jun-2006 03:56 |
| HTML Code | amgujral | Web Design Forum | 0 | 07-Apr-2006 10:46 |
| Two virtual hosts, cgi script behaves differently on each | blimbo | Apache Web Server Forum | 0 | 04-Aug-2004 10:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The