tcl problem

71 views
Skip to first unread message

Burke Geceyatmaz

unread,
Sep 11, 2023, 3:07:12 PM9/11/23
to Network Simulator 2 (NS2)
bg@bg-virtual-machine:~/Desktop/ns-2.34-allinone-main/ns-allinone-2.34$ ./install
============================================================
* 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 CWeb
============================================================
Making cweb
./install: 320: make: not found
cweb failed to make, but it's optional
chmod: cannot access 'cweave': No such file or directory
chmod: cannot access 'ctangle': No such file or directory
ln: failed to create symbolic link 'cweave': File exists
ln: failed to create symbolic link 'ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
./install: 349: make: not found
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
./install: 380: make: not found
./install: 386: make: not found
============================================================
* Build zlib
============================================================
Checking for gcc...
Building static library libz.a version 1.2.3 with cc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
./install: 406: make: not found
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.18
============================================================
./install: 431: autoconf: not found
configure: WARNING: unrecognized options: --enable-gcc
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/bg/Desktop/ns-2.34-allinone-main/ns-allinone-2.34/tcl8.4.18/unix':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
tcl8.4.18 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.

knudfl

unread,
Sep 11, 2023, 3:48:48 PM9/11/23
to Network Simulator 2 (NS2)
Build ns-2.34
sudo apt install g++ g++-4.8 autoconf libtool libxmu-dev
* Delete the ns-allinone-2.34.tar.gz in /home/name/Downloads/ .... if present.
* Download a new ns-allinone-2.34.tar.gz

* Unpack in /home/name/ns2/ :             (Not Desktop/)
cd ns2/ && tar xvf ../Downloads/ns-allinone-2.34.tar.gz
cd ns-allinone-2.34/
export CC=gcc-4.8 CXX=g++-4.8 && ./install
.... Please note that a virtual-machine is not recommended .....
Quote: Conditions for ns2 → A 'Linux OS' installed to a hard disk partition.
Both VirtualBox and wmWare have resulted in poor unusable 'ns' executable since 2017

Burke Geceyatmaz

unread,
Sep 12, 2023, 8:30:57 AM9/12/23
to Network Simulator 2 (NS2)
bg@bg-virtual-machine:~/Desktop/ns-allinone-2.34$ sudo apt install g++ g++-4.8 autoconf libtool libxmu-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package g++-4.8
E: Couldn't find any package by glob 'g++-4.8'
bg@bg-virtual-machine:~/Desktop/ns-allinone-2.34$


11 Eylül 2023 Pazartesi tarihinde saat 22:48:48 UTC+3 itibarıyla knudfl şunları yazdı:

knudfl

unread,
Sep 12, 2023, 8:37:38 AM9/12/23
to Network Simulator 2 (NS2)
Repeat :    ..... please specify your OS.  
Name and version, like Ubuntu 20.04

Burke Geceyatmaz

unread,
Sep 12, 2023, 8:53:14 AM9/12/23
to Network Simulator 2 (NS2)
ubuntu 22.10

12 Eylül 2023 Salı tarihinde saat 15:37:38 UTC+3 itibarıyla knudfl şunları yazdı:

knudfl

unread,
Sep 12, 2023, 9:55:37 AM9/12/23
to Network Simulator 2 (NS2)
No Ubuntu 22.10  here.  LTS versions only   (8.04 .... 22.04)
But I guess the "22.04 solution" will work for the install of g++-4.8
 
sudo su   <enter password>
echo "deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic main universe" >> /etc/apt/sources.list
exit
sudo apt update
sudo apt install g++-4.8

Burke Geceyatmaz

unread,
Sep 12, 2023, 2:33:36 PM9/12/23
to Network Simulator 2 (NS2)
bg@bg-virtual-machine:~/Desktop/ns-allinone-2.34$ sudo apt update
Ign:1 http://cy.archive.ubuntu.com/ubuntu kinetic InRelease                    
Ign:2 http://cy.archive.ubuntu.com/ubuntu kinetic-updates InRelease            
Ign:3 http://security.ubuntu.com/ubuntu kinetic-security InRelease            
Get:4 http://dk.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Ign:5 http://cy.archive.ubuntu.com/ubuntu kinetic-backports InRelease        
Err:6 http://security.ubuntu.com/ubuntu kinetic-security Release            
  404  Not Found [IP: 91.189.91.81 80]
Err:7 http://cy.archive.ubuntu.com/ubuntu kinetic Release
  404  Not Found [IP: 185.125.190.36 80]
Err:8 http://cy.archive.ubuntu.com/ubuntu kinetic-updates Release
  404  Not Found [IP: 185.125.190.36 80]
Err:9 http://cy.archive.ubuntu.com/ubuntu kinetic-backports Release
  404  Not Found [IP: 185.125.190.36 80]
Ign:4 http://dk.archive.ubuntu.com/ubuntu bionic InRelease
Get:10 http://dk.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1007 kB]
Get:11 http://dk.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1019 kB]
Get:12 http://dk.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:13 http://dk.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Get:14 http://dk.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:15 http://dk.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:16 http://dk.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64@2 Icons [29 B]
Get:17 http://dk.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:18 http://dk.archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8531 kB]
Get:19 http://dk.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:20 http://dk.archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3287 kB]
Get:21 http://dk.archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2151 kB]
Get:22 http://dk.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8420 kB]
Get:23 http://dk.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64@2 Icons [29 B]
Reading package lists... Done                                                  
E: The repository 'http://security.ubuntu.com/ubuntu kinetic-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://cy.archive.ubuntu.com/ubuntu kinetic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://cy.archive.ubuntu.com/ubuntu kinetic-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://cy.archive.ubuntu.com/ubuntu kinetic-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://dk.archive.ubuntu.com/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-hidpi (main/dep11/icons...@2.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (universe/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-small (universe/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-hidpi (universe/dep11/icons...@2.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (universe/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (universe/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-hidpi (main/dep11/icons...@2.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (universe/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-small (universe/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target DEP-11-icons-hidpi (universe/dep11/icons...@2.tar) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (universe/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52
W: Target CNF (universe/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:51 and /etc/apt/sources.list:52


12 Eylül 2023 Salı tarihinde saat 16:55:37 UTC+3 itibarıyla knudfl şunları yazdı:

Burke Geceyatmaz

unread,
Sep 12, 2023, 2:37:55 PM9/12/23
to Network Simulator 2 (NS2)
bg@bg-virtual-machine:~/Desktop/ns-allinone-2.34$ sudo apt install g++-4.8

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 g++-4.8 : Depends: gcc-4.8-base (= 4.8.5-4ubuntu8) but it is not going to be installed
           Depends: gcc-4.8 (= 4.8.5-4ubuntu8) but it is not going to be installed
           Depends: libstdc++-4.8-dev (= 4.8.5-4ubuntu8) but it is not going to be installed
 libperl5.34 : Depends: perl-modules-5.34 (>= 5.34.0-5ubuntu1.2) but 5.34.0-5ubuntu1 is to be installed
 perl : Depends: perl-base (= 5.34.0-5ubuntu1.2) but 5.34.0-5ubuntu1 is to be installed
        Depends: perl-modules-5.34 (>= 5.34.0-5ubuntu1.2) but 5.34.0-5ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


12 Eylül 2023 Salı tarihinde saat 21:33:36 UTC+3 itibarıyla Burke Geceyatmaz şunları yazdı:

knudfl

unread,
Sep 12, 2023, 6:17:00 PM9/12/23
to Network Simulator 2 (NS2)
"bg@bg-virtual-machine:~/Desktop/ns-allinone-2.34$ sudo apt update "
A VirtualMachine can be used for ns2 only if you have positive experiences with that particular  VirtualMachine from your previous ns2 versions.

About "apt update" : Seems the only lines saying Get  is with 
The " http://cy.archive.ubuntu.com/ubuntu " link is wrong :
Ubuntu 22.10 kinetic is no more supported,  a month ago the repo was moved to "old-releases",
..... so the /etc/apt/sources.list is to be replaced with this new file
#############
deb http://old-releases.ubuntu.com/ubuntu/ kinetic main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-security multiverse universe

deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic main universe
##############

Burke Geceyatmaz

unread,
Sep 13, 2023, 11:26:45 AM9/13/23
to Network Simulator 2 (NS2)
how to install this
deb http://old-releases.ubuntu.com/ubuntu/ kinetic main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ kinetic-security multiverse universe
13 Eylül 2023 Çarşamba tarihinde saat 01:17:00 UTC+3 itibarıyla knudfl şunları yazdı:

knudfl

unread,
Sep 13, 2023, 12:01:16 PM9/13/23
to Network Simulator 2 (NS2)
Howto replace sources.list in Ubuntu 22.10 :

Download  sources.list__22.10

sudo cp sources.list__22.10 /etc/apt/
cd /etc/apt/
sudo mv sources.list__22.10 sources.list

sudo apt update
sudo apt install g++-4.8
Reply all
Reply to author
Forward
0 new messages