rsnapshot on FreeBSD, 'make test' yields 'gnu_cp not found'?

Posted on 2009-02-16
Last Modified: 2013-12-09
Hello i'm trying to set up rsnapshot-1.3.1 on FreeBSD 6.1

Working Directory -> /usr/ports/sysutils/rsnapshot/work/rsnapshot-1.3.1

Command I type -> make test

Error ->
t/gnu_cp....................cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
        1/1 skipped: GNU cp not found

any ideas?
14:42:44[root@devweb4]  rsnapshot-1.3.1 $ make test

/usr/bin/perl -MTest::Harness -e 'runtests(glob "t/*.t")';


t/gnu_cp....................cp: illegal option -- -

usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file

       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory


        1/1 skipped: GNU cp not found



All tests successful, 1 subtest skipped.

Files=4, Tests=5,  1 wallclock secs ( 0.69 cusr +  0.30 csys =  0.98 CPU)

14:42:56[root@devweb4]  rsnapshot-1.3.1 $ pwd


14:43:15[root@devweb4]  rsnapshot-1.3.1 $

Open in new window

Question by:braker15
    LVL 23

    Expert Comment

    You don't have GNU version of cp, but it's not required. I've just installed rsnapshot on FreeBSD 7.0 (I don't have GNU version of cp also).
    Can you tell what is exact problem?
    And why do you run make manually? Isn't it better to run just 'make install clean' in /usr/ports/sysutils/rsnapshot?
    LVL 1

    Author Comment

    I ran "make clean install" in /usr/ports/sysutils/rsnapshot  and then couldn't figure out where the default config file was... so i started snooping around deeper in that /usr/ports/sysutils/rsnapshot directory

    do you have some good instructions on how to set up rsnapshot in freebsd?

    LVL 23

    Accepted Solution

    You can always run pkg_info -L rsnapshot-1.3.1 to list all files that belong to this package.
    After running this command, I can see, that there is /usr/local/etc/rsnapshot.conf.default file. Probably it should be renamed to remove .default part from it.
    LVL 61

    Assisted Solution

    ports are not intended to do "make test" somewhere in subdir - they should work as they are

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now