LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-20-2015, 07:55 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
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 ?!!
 
Old 01-20-2015, 11:15 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

-
 
Old 01-20-2015, 11:54 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,630

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
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
 
Old 01-21-2015, 01:56 PM   #4
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
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...
 
Old 01-21-2015, 04:24 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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>/.


-
 
Old 01-22-2015, 04:54 AM   #6
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
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...
 
  


Reply

Tags
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
I am trying to run CRCN protocol in ns2.31 but every time i am getting this error, Harsh Vaidya Linux - Newbie 28 01-13-2015 02:08 PM
[SOLVED] snort will not run on eth1 in mint17 Fred Caro Linux - Newbie 29 11-08-2014 07:19 PM
Mint17 graphics error Brian4882 Linux - Laptop and Netbook 26 09-04-2014 12:51 PM
NS2: regarding error during run .tcl file bhupendrapatel Linux - Software 4 05-03-2013 09:32 AM
lib error when trying to run 32bit game on AMD64 Zaskar Debian 1 04-03-2008 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:07 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
Open Source Consulting | Domain Registration