Permission denied lors patch du module wimax

bijad2010 Messages postés 56 Statut Membre -  
 ami -

Bonjour tous
Bonjour bob031

j'ai suivie les étapes suivant d'installation du patch

To install the patch, follow the instructions below:

1. download the ns-allinone-2.33 package from SourceForge

2. unpack the file that you just downloaded in your preferred location (let us assume the location is /usr/local). This will create a directory named /usr/local/ns-allinone-2.33

3. download the latest patch (let us assume that you downloaded the file in /tmp)

4. apply the patch, by executing the following command:

cd /usr/local/ns-allinone-2.33/ns-2.33
gzip -dc /tmp/ns2mesh80216-2.33-081113.patch.gz | patch -Np1

mais dans la 4éme étapes lorsque je tape la commnde de patch ,
je trouve erreur
@jaouadi-laptop:/usr/local/ns-allinone-2.33/ns-2.33$ sudo gzip -dc /tmp/ns2mesh80216-2.33-081113.patch.gz | patch -Np1
patching file Makefile.in
patch: **** Can't rename file /tmp/po7uIF5m to Makefile.in : Permission denied
jaouadi@jaouadi-laptop:/usr/local/ns-allinone-2.33/ns-2.33$
Please help me
can anyone helpme
merci pour tous le monde

2 réponses

  1. lami20j Messages postés 21506 Date d'inscription   Statut Modérateur, Contributeur sécurité Dernière intervention   3 571
     
    Salut,

    @jaouadi-laptop:/usr/local/ns-allinone-2.33/ns-2.33$ sudo gzip -dc /tmp/ns2mesh80216-2.33-081113.patch.gz | patch -Np1

    Si on regarde ta commande on remarque que tu fais un sudo et après tu passe pipe la commande patch sans sudo, d'où l'histoire de permission.

    Je crois que tu devrais faire
    sudo gzip ... | sudo patch ....


    0
    1. bijad2010 Messages postés 56 Statut Membre
       
      Merci pour votre aide
      la commande
      -laptop:/usr/local/ns-allinone-2.33/ns-2.33$ sudo gzip -dc /tmp/ns2mesh80216-2.33-081113.patch.gz | patch -Np1
      est execute
      mais il y a un problème au niveau d'installation

      ============================================================
      * Build ns-2.33
      ============================================================
      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 if C++ libraries work without any namespace... no
      checking if C++ libraries work with namespace std... yes
      checking if STL works without any namespace... no
      checking if STL works with namespace std... yes
      checking should use STL... yes
      checking for tcl.h... -I../include
      checking for libtcl8.4... -L../lib -ltcl8.4
      checking for init.tcl... ../lib/tcl8.4
      checking for tclsh8.4.18... no
      checking for tclsh8.4... ../bin/tclsh8.4
      checking for tk.h... -I../include
      checking for libtk8.4... -L../lib -ltk8.4
      checking for tk.tcl... ../lib/tk8.4
      checking for otcl.h... -I../otcl-1.13
      checking for libotcl1.13... -L../otcl-1.13 -lotcl
      checking for tclcl.h... -I../tclcl-1.19
      checking for libtclcl... -L../tclcl-1.19 -ltclcl
      checking for tcl2c++... ../tclcl-1.19
      checking for X11 header files
      checking for X11 library archive
      checking for XOpenDisplay in -lX11... yes
      checking for XShmAttach in -lXext... yes
      checking for libtcldbg... no
      checking dmalloc... not requested with --with-dmalloc
      checking for perl... /usr/bin
      checking for ANSI C header files... (cached) yes
      checking arpa/inet.h usability... yes
      checking arpa/inet.h presence... yes
      checking for arpa/inet.h... yes
      checking fenv.h usability... yes
      checking fenv.h presence... yes
      checking for fenv.h... yes
      checking netinet/in.h usability... yes
      checking netinet/in.h presence... yes
      checking for netinet/in.h... yes
      checking for string.h... (cached) yes
      checking for strings.h... (cached) yes
      checking time.h usability... yes
      checking time.h presence... yes
      checking for time.h... yes
      checking for unistd.h... (cached) yes
      checking net/ethernet.h usability... yes
      checking net/ethernet.h presence... yes
      checking for net/ethernet.h... yes
      checking for main in -lm... yes
      checking for bcopy... yes
      checking for bzero... yes
      checking for fesetprecision... no
      checking for feenableexcept... yes
      checking for getrusage... yes
      checking for sbrk... yes
      checking for snprintf... yes
      checking return type of random... long
      checking for int8_t... yes
      checking for int16_t... yes
      checking for int32_t... yes
      checking for u_int8_t... yes
      checking for u_int16_t... yes
      checking for u_int32_t... yes
      checking for u_char... yes
      checking for u_int... yes
      checking for strtoq... yes
      checking for strtoll... yes
      checking for long... yes
      checking size of long... 4
      checking for __int64_t... no
      checking for long long... yes
      checking for int64_t... yes
      checking which kind of 64-bit int to use... int64_t
      checking system version (for dynamic loading)... Linux-2.6.28-18-generic
      checking for dlopen in -ldl... yes
      checking dlfcn.h usability... yes
      checking dlfcn.h presence... yes
      checking for dlfcn.h... yes
      checking for ns library name... libns.so
      checking for struct ether_header... found
      checking for struct ether_addr... found
      checking for addr2ascii... no
      checking for Linux compliant tcphdr... found
      checking for BSD compliant tcphdr... not found
      checking for socklen_t... yes
      checking for main in -lpcap... yes
      checking to make nse... yes
      Explicitly disabling static compilation
      checking for dlopen in -ldl... (cached) yes
      checking for a BSD-compatible install... /usr/bin/install -c
      configure: creating ./config.status
      config.status: creating Makefile
      config.status: creating tcl/lib/ns-autoconf.tcl
      config.status: creating indep-utils/webtrace-conv/ucb/Makefile
      config.status: creating indep-utils/webtrace-conv/dec/Makefile
      config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
      config.status: creating indep-utils/webtrace-conv/epa/Makefile
      config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
      config.status: creating autoconf.h
      creating ./gen
      Makefile:331: *** les commandes commencent avant la première cible. Arrêt.
      Ns make failed!
      See https://www.isi.edu/nsnam/ns/ns-problems.html for problems
      jaouadi@jaouadi-laptop:/usr/local/ns-allinone-2.33$
      Please tu peux m'aide sur cette point
      ET
      Merci en avant sur tous réponse
      0
  2. lami20j Messages postés 21506 Date d'inscription   Statut Modérateur, Contributeur sécurité Dernière intervention   3 571
     
    Re,

    mais il y a un problème au niveau d'installation
    C'est quoi ta commande pour l'installation?
    0
    1. bijad2010 Messages postés 56 Statut Membre
       
      jaouadi@jaouadi-laptop:/usr/local/ns-allinone-2.33$ sudo ./install
      0
    2. bijad2010 Messages postés 56 Statut Membre
       
      SALUT,

      l'istallation démarre mais voir ma problème


      wimax/common/wimax_debug.o wimax/common/wimax_debug.cc
      In file included from ./wimax/common/wimax_header.h:23,
      from ./wimax/common/wimax_packet.h:26,
      from ./wimax/common/wimax_debug.h:23,
      from wimax/common/wimax_debug.cc:20:
      ./common/packet.h: In static member function 'static void p_info::initName()':
      ./common/packet.h:289: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:290: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:291: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:292: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:293: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:294: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:295: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:296: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:297: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:298: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:299: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:300: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:301: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:302: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:303: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:304: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:305: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:306: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:307: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:308: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:310: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:311: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:312: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:313: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:314: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:315: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:317: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:318: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:319: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:320: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:321: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:322: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:323: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:324: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:325: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:326: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:327: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:328: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:329: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:330: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:332: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:333: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:335: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:336: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:337: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:339: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:342: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:345: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:348: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:351: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:354: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:357: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:361: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:365: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:366: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:368: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:369: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:372: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:375: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:378: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:381: attention : deprecated conversion from string constant to 'char*'
      ./common/packet.h:383: attention : deprecated conversion from string constant to 'char*'
      In file included from wimax/common/wimax_debug.cc:21:
      ./wimax/mesh/wimsh_packet.h: In static member function 'static unsigned int WimshMshDsch::pers2frames(WimshMshDsch::Persistence)':
      ./wimax/mesh/wimsh_packet.h:234: erreur: 'UINT_MAX' was not declared in this scope
      make: *** [wimax/common/wimax_debug.o] Erreur 1
      Ns make failed!
      See https://www.isi.edu/nsnam/ns/ns-problems.html for problems
      jaouadi@jaouadi-laptop:/usr/local/ns-allinone-2.33$
      merci pour votre attention
      please aide moi
      je rendre le projet fin d'étude aprés 3semaine
      et cette instant je n'implémente aucun topologie wimax
      merci
      0
    3. ami
       
      Bonjour,

      J'ai le meme problème que vous bijad2010. Avez vous trouvé une solution?
      0