LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error in run ./install for ns2 in mint17.1 32bit (https://www.linuxquestions.org/questions/linux-software-2/error-in-run-install-for-ns2-in-mint17-1-32bit-4175531616/)

mary1001 01-20-2015 07:55 AM

error in run ./install for ns2 in mint17.1 32bit
 
hi
i want to install ns2.35 in mint 17.1 "32bit" but by running ./install i see this error in terminal:

============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Testing for FreeBSD environment
============================================================
FreeBSD not detected
============================================================
* Build XGraph-12.2
============================================================
./install: 271: ./install: ./configure: Permission denied
make all-am
make[1]: Entering directory `/home/me/Desktop/ns-allinone-2.35/xgraph-12.2'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/me/Desktop/ns-allinone-2.35/xgraph-12.2'
xgraph has been installed successfully.
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
extern int strlen(); /* length of string */
^
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
extern int strlen(); /* length of string */
^
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security]
if (*s) printf(s);
^
gcc -g -o ctangle ctangle.o common.o
gcc -g -c -o cweave.o cweave.c
cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
extern int strlen(); /* length of string */
^
cweave.w: In function ‘print_cat’:
cweave.w:1739:1: warning: format not a string literal and no format arguments [-Wformat-security]
printf(cat_name[c]);
^
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link ‘cweave’: File exists
ln: failed to create symbolic link ‘ctangle’: File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
cc -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io
/usr/bin/ld: i386:x86-64 architecture of input file `gb_io.o' is incompatible with i386 output
collect2: error: ld returned 1 exit status
make: *** [test_io] Error 1
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
gcc -I../include -L../lib -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
/usr/bin/ld: skipping incompatible ../lib/libgb.a when searching for -lgb
/usr/bin/ld: cannot find -lgb
collect2: error: ld returned 1 exit status
make: *** [itm] Error 1
gcc -I../include -L../lib -o ../bin/sgb2comns sgb2comns.o -lm -lgb
/usr/bin/ld: skipping incompatible ../lib/libgb.a when searching for -lgb
/usr/bin/ld: cannot find -lgb
collect2: error: ld returned 1 exit status
make: *** [sgb2comns] Error 1
============================================================
* Build zlib
============================================================
./install: 382: ./install: ./configure: Permission denied
Zlib-1.2.3 configuration failed, but it's optional, so continuing ...
============================================================
* Build tcl8.5.10
============================================================
./install: 410: ./install: ./configure: Permission denied
tcl8.5.10 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
-------------------------------------------------------------------------------
can you help me what should i do ?!!:confused:

knudfl 01-20-2015 11:15 AM

Quote:

./install: 271: ./install: ./configure: Permission denied
.
./install: 382: ./install: ./configure: Permission denied
? May be you unpacked ns-allinone-2.35*.tar.gz with a Windows© tool ?
? Or may be you did 'sudo tar xvf ns-allinone-2.35*.tar.gz ?
*** Both options will / can course "Permission denied".

Normally ns2 is supposed to be built in /home/<user-name/(folder/).
And the unpack must be done as unprivileged user, this way :
$ tar xvf ns-allinone-2.35*.tar.gz

-

John VV 01-20-2015 11:54 AM

also extracting it ON the Desktop might cause problems

The "Desktop" folder is more for show and decoration

Some Desktop Managers will give you all kinds of problems if you use it to build software in .


use the HOME folder

/home/YourUserName/ns-allinone-2.35

mary1001 01-21-2015 01:56 PM

thank you for your reply...
i already do this and i never had this problem. i extract it on Desktop and averything was ok. i think for all things that i want to run install i have problem. i didnt have any problem with mint 64bit, but now by mint32bit i have lots of problem...i dont know what i should do....i should finish my project in ns2 very soon but now i have problem with my OS...:cry:

knudfl 01-21-2015 04:24 PM

← #4 .

Not an OS issue. And don't "extract".
Please `untar´ : tar xvf <ns->.
And never on the Desktop.
Default is /home/<user-name/<new-folder>/.


-

mary1001 01-22-2015 04:54 AM

hi
i think my problem was this : "when i transfer the source file of ns2 from my flash memory to my laptop ,this file was damaged..."
i do this again and now the install in ns2 work very well...and i also untar and put the file in tha path as you say...now ok...thanks a lot...


All times are GMT -5. The time now is 05:12 PM.