drmtools installation error
1
0
Entering edit mode
5.2 years ago
Shahzad ▴ 30

Dear All please help me to solve this installation error

while installing a small util https://sourceforge.net/projects/drmtools/ Build instructions: Use cmake. Inspect the CMakeLists.txt and verify that it will install to the directory you want. Then do: mkdir build cd build cmake .. make make install

PC:~/drm_tools-1.1.30$ cd build
PC:~/drm_tools-1.1.30/build$ cmake ..
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bilal/drm_tools-1.1.30/build
PC:~/drm_tools-1.1.30/build$ make
2Scanning dependencies of target pockmark
[  2%] Building C object CMakeFiles/pockmark.dir/pockmark.c.o
[  5%] Linking C executable /tmp/testinstall/bin/pockmark
[  5%] Built target pockmark
Scanning dependencies of target msgqueue
[  7%] Building C object CMakeFiles/msgqueue.dir/msgqueue.c.o
[ 10%] Linking C executable /tmp/testinstall/bin/msgqueue
[ 10%] Built target msgqueue
Scanning dependencies of target dmath
[ 12%] Building C object CMakeFiles/dmath.dir/test_math.c.o
[ 15%] Building C object CMakeFiles/dmath.dir/math_funcs.c.o
[ 17%] Linking C executable /tmp/testinstall/bin/dmath
[ 17%] Built target dmath
Scanning dependencies of target datasniffer
[ 20%] Building C object CMakeFiles/datasniffer.dir/datasniffer.c.o
[ 22%] Linking C executable /tmp/testinstall/bin/datasniffer
[ 22%] Built target datasniffer
Scanning dependencies of target binreplace
[ 25%] Building C object CMakeFiles/binreplace.dir/binreplace.c.o
[ 27%] Linking C executable /tmp/testinstall/bin/binreplace
[ 27%] Built target binreplace
Scanning dependencies of target tarsieve
[ 30%] Building C object CMakeFiles/tarsieve.dir/tarsieve.c.o
/home/bilal/drm_tools-1.1.30/tarsieve.c:69:10: fatal error: pcre.h: No such file or directory
 #include <pcre.h>
          ^~~~~~~~
compilation terminated.
CMakeFiles/tarsieve.dir/build.make:62: recipe for target 'CMakeFiles/tarsieve.dir/tarsieve.c.o' failed
make[2]: *** [CMakeFiles/tarsieve.dir/tarsieve.c.o] Error 1
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/tarsieve.dir/all' failed
make[1]: *** [CMakeFiles/tarsieve.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
(base) bilal@BIlalPC:~/drm_tools-1.1.30/build$ make
2[  5%] Built target pockmark
[ 10%] Built target msgqueue
[ 17%] Built target dmath
[ 22%] Built target datasniffer
[ 27%] Built target binreplace
[ 30%] Building C object CMakeFiles/tarsieve.dir/tarsieve.c.o
/home/bilal/drm_tools-1.1.30/tarsieve.c:69:10: fatal error: pcre.h: No such file or directory
 #include <pcre.h>
          ^~~~~~~~
compilation terminated.
CMakeFiles/tarsieve.dir/build.make:62: recipe for target 'CMakeFiles/tarsieve.dir/tarsieve.c.o' failed
make[2]: *** [CMakeFiles/tarsieve.dir/tarsieve.c.o] Error 1
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/tarsieve.dir/all' failed
make[1]: *** [CMakeFiles/tarsieve.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

while cheking if the file is present

PC:~/drm_tools-1.1.30$ ./
build/                          test_chardiff.sh
build_linux.sh                  test_dmath_mingw.sh
build_mingw.sh                  test_dmath.sh
build_solaris.sh                test_extract_features2.sh
test_binformat.sh               test_extract_features_mingw.sh
test_binload.sh                 test_extract_features.sh
test_binorder.sh                test_extract_increment.sh
test_binsplit.sh                test_tarsieve.sh
drmtools cmake make • 1.6k views
ADD COMMENT
1
Entering edit mode

Hi Shahzad

Please use the formatting bar (especially the code option) to present your post better. I've done it for you this time.
code_formatting

Thank you!

ADD REPLY
2
Entering edit mode
5.2 years ago
GenoMax 147k

Looks like you need to install PCRE libraries to begin with.

ADD COMMENT
0
Entering edit mode

Thank you. That solved the problem. Also thank you @lakhujanivijay i ll take care of the from now on.

ADD REPLY
0
Entering edit mode

If the issue was solved please consider accepting the answer:

enter image description here

ADD REPLY
0
Entering edit mode

Hi the problem was solved but then the commands that should be available for use in the env was not present. the install ran successfully

buntuNew:~/Downloads/drm_tools-1.1.28/build$ make
    Scanning dependencies of target binsplit
    [  2%] Building C object CMakeFiles/binsplit.dir/binsplit.c.o
    [  5%] Linking C executable /tmp/testinstall/bin/binsplit
    [  5%] Built target binsplit
    Scanning dependencies of target dmath
    [ 12%] Built target dmath
    Scanning dependencies of target binorder
    [ 17%] Built target binorder
    Scanning dependencies of target execinput
    [ 20%] Building C object CMakeFiles/execinput.dir/execinput.c.o
    [ 22%] Linking C executable /tmp/testinstall/bin/execinput
    [ 22%] Built target execinput
    Scanning dependencies of target tarsieve
    [ 27%] Built target tarsieve
    Scanning dependencies of target binreplace
    [ 30%] Building C object CMakeFiles/binreplace.dir/binreplace.c.o
    [ 32%] Linking C executable /tmp/testinstall/bin/binreplace
    [ 32%] Built target binreplace
    Scanning dependencies of target binformat
    [ 35%] Building C object CMakeFiles/binformat.dir/binformat.c.o
    /home/ubuntu/Downloads/drm_tools-1.1.28/binformat.c: In function ‘format_file’:
    /home/ubuntu/Downloads/drm_tools-1.1.28/binformat.c:1020:22: warning: format not a string literal and no format arguments [-Wformat-security]
                          fprintf(fout,fptr->format);
                          ^~~~~~~
    [ 37%] Linking C executable /tmp/testinstall/bin/binformat
    [ 37%] Built target binformat
    Scanning dependencies of target mdump
    [ 40%] Building C object CMakeFiles/mdump.dir/mdump.c.o
    [ 42%] Linking C executable /tmp/testinstall/bin/mdump
    [ 42%] Built target mdump
    Scanning dependencies of target accudate
    [ 45%] Building C object CMakeFiles/accudate.dir/accudate.c.o
    [ 47%] Linking C executable /tmp/testinstall/bin/accudate
    [ 47%] Built target accudate
    Scanning dependencies of target columnadd
    [ 50%] Building C object CMakeFiles/columnadd.dir/columnadd.c.o
    [ 52%] Linking C executable /tmp/testinstall/bin/columnadd
    [ 52%] Built target columnadd
    Scanning dependencies of target datasniffer
    [ 55%] Building C object CMakeFiles/datasniffer.dir/datasniffer.c.o
    [ 57%] Linking C executable /tmp/testinstall/bin/datasniffer
    [ 57%] Built target datasniffer
    Scanning dependencies of target indexed_text
    [ 60%] Building C object CMakeFiles/indexed_text.dir/indexed_text.c.o
    [ 62%] Linking C executable /tmp/testinstall/bin/indexed_text
    [ 62%] Built target indexed_text
    Scanning dependencies of target binload
    [ 67%] Built target binload
    Scanning dependencies of target extract
    **[ 70%] Building C object CMakeFiles/extract.dir/extract.c.o
    In file included from /home/ubuntu/Downloads/drm_tools-1.1.28/extract.c:437:
    /home/ubuntu/Downloads/drm_tools-1.1.28/extract.c: In function ‘match_p’:
    /home/ubuntu/Downloads/drm_tools-1.1.28/math_funcs.h:60:45: warning: argument 2 range [18446744047939747840, 18446744073709551592] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
     #define EXT_REALLOC2(A,B,C,D,E,F) if(B<C){A=realloc(A,(D*E)); if(!A)insane(INSFTLERR,F);B=(D);}
                                                 ^~~~~~~~~~~~~~~~
    /home/ubuntu/Downloads/drm_tools-1.1.28/extract.c:11980:9: note: in expansion of macro ‘EXT_REALLOC2’
             EXT_REALLOC2(omni->ovector,omni->osize,0,(2*omni->osize),(3*SOI),MEMOOPS);
             ^~~~~~~~~~~~
    In file included from /home/ubuntu/Downloads/drm_tools-1.1.28/extract.c:426:
    /usr/include/stdlib.h:549:14: note: in a call to allocation function ‘realloc’ declared here
     extern void *realloc (void *__ptr, size_t __size)
                  ^~~~~~~**
    [ 72%] Building C object CMakeFiles/extract.dir/math_funcs.c.o
    [ 75%] Linking C executable /tmp/testinstall/bin/extract
    [ 75%] Built target extract
    Scanning dependencies of target chardiff
    [ 80%] Built target chardiff
    Scanning dependencies of target mbin
    [ 85%] Built target mbin
    Scanning dependencies of target msgqueue
    [ 90%] Built target msgqueue
    Scanning dependencies of target pockmark
    [ 95%] Built target pockmark
    Scanning dependencies of target mbout
    [100%] Built target mbout

But the extract command at 67% on the process seems to generate some warning when i tried to execute it, it was not detected by ubuntu. Any thoughts?

ADD REPLY
0
Entering edit mode

i want to use extract: A utility that is designed to extract and emit data from text files based on character or token position. In many instances it can replace tr, sed, or awk.

execinput: A utility that reads from stdin and executes each line as a command in a subprocess. from this package and both the commands are unavailable after complete installation.

build$ make install
2[  5%] Built target binsplit
[ 12%] Built target dmath
[ 17%] Built target binorder
[ 22%] Built target execinput
[ 27%] Built target tarsieve
[ 32%] Built target binreplace
[ 37%] Built target binformat
[ 42%] Built target mdump
[ 47%] Built target accudate
[ 52%] Built target columnadd
[ 57%] Built target datasniffer
[ 62%] Built target indexed_text
[ 67%] Built target binload
[ 75%] Built target extract
[ 80%] Built target chardiff
[ 85%] Built target mbin
[ 90%] Built target msgqueue
[ 95%] Built target pockmark
[100%] Built target mbout
Install the project...
-- Install configuration: ""
-- Up-to-date: /tmp/testinstall/man/man1/accudate.1
-- Installing: /tmp/testinstall/man/man1/binformat.1
-- Up-to-date: /tmp/testinstall/man/man1/binload.1
-- Installing: /tmp/testinstall/man/man1/binorder.1
-- Up-to-date: /tmp/testinstall/man/man1/binreplace.1
-- Installing: /tmp/testinstall/man/man1/binsplit.1
-- Up-to-date: /tmp/testinstall/man/man1/chardiff.1
-- Up-to-date: /tmp/testinstall/man/man1/columnadd.1
-- Up-to-date: /tmp/testinstall/man/man1/datasniffer.1
-- Up-to-date: /tmp/testinstall/man/man1/dmath.1
-- Installing: /tmp/testinstall/man/man1/execinput.1
-- Installing: /tmp/testinstall/man/man1/extract.1
-- Up-to-date: /tmp/testinstall/man/man1/indexed_text.1
-- Installing: /tmp/testinstall/man/man1/mbin.1
-- Installing: /tmp/testinstall/man/man1/mbout.1
-- Up-to-date: /tmp/testinstall/man/man1/mdump.1
-- Up-to-date: /tmp/testinstall/man/man1/msgqueue.1
-- Up-to-date: /tmp/testinstall/man/man1/pockmark.1
-- Installing: /tmp/testinstall/man/man1/tarsieve.1
ADD REPLY
0
Entering edit mode

both the commands are unavailable after complete installation

You will need to make sure that the executables were made after completion of compilation. If they were then add the directory where they are present to your $PATH.

ADD REPLY
0
Entering edit mode
ls
build.make  C.includecache  cmake_clean.cmake  DependInfo.cmake  depend.internal  depend.make  execinput.c.o  flags.make  link.txt  progress.mak

these are files from one folder generated by after compilation. i even manally export the path still not found by the system.

ADD REPLY
1
Entering edit mode

These don't look like the executables you want. They may be in bin directory in software source or if you had root privileges then they should have been copied to /bin or /usr/bin. You will need to look if there was no error produced during compilation.

ADD REPLY
0
Entering edit mode

Hi thank you. sorry for late reply. The executables were going in default directory as directed by the script had to edit the directory path from the script.

ADD REPLY

Login before adding your answer.

Traffic: 2487 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6