Makefile

Sekcia: Konfigurácia 21.03.2007 | 16:54
jako   Návštevník
Caf,

tak a je to tu, debian nema taky balicek ako chcem a musim si ho skompilovat,
jajaaaj, pridem o moje nekompilovatlne panictvo :(

takze stiahol som si repley-o-matic-1.4.3
ls -l /home/ROM/
-rw-rw-r-- 1 root root  5245 2002-01-14 17:32 base64.c
-rw-rw-r-- 1 root root  1340 2007-03-20 16:44 CREDITS
-rw-rw-r-- 1 root root   805 2003-11-26 02:43 HEADERS
-rw-rw-r-- 1 root root  3092 2007-03-20 16:41 ChangeLog
-rw-rw-r-- 1 root root 17992 2002-01-14 17:32 LICENSE
-rw-rw-r-- 1 root root 33947 2007-03-20 16:41 main.c
-rwxrw-r-- 1 root root   491 2006-08-20 09:06 Makefile
-rw-rw-r-- 1 root root  1940 2002-01-14 17:32 mime.h
-rw-rw-r-- 1 root root  1354 2006-08-20 09:06 README
-rw-rw-r-- 1 root root   184 2007-03-20 16:41 RELEASE_NOTES
-rw-rw-r-- 1 root root  2871 2007-03-20 16:41 reply-o-matic.spec
-rw-rw-r-- 1 root root 11683 2007-03-20 16:41 rom.1
-rw-rw-r-- 1 root root  1070 2007-03-20 16:41 rom.h

dobre, to by bolo a co teraz?
rozum mi instiktivne sepka Makefile
./Makefile
./Makefile: line 4: -O2: command not found
./Makefile: line 6: all:: command not found
./Makefile: line 7: CC: command not found
./Makefile: line 7: CFLAGS: command not found
./Makefile: line 7: -o: command not found
./Makefile: line 9: clean:: command not found
./Makefile: line 10: @rm: command not found
./Makefile: line 11: install:: command not found
./Makefile: line 12: INSTALL_PREFIX: command not found
./Makefile: line 13: INSTALL_PREFIX: command not found
./Makefile: line 14: INSTALL_PREFIX: command not found
./Makefile: line 15: INSTALL_PREFIX: command not found
install: cannot stat `rom': není souborem ani adresářem
./Makefile: line 16: INSTALL_PREFIX: command not found
./Makefile: line 16: MAN1: command not found
install: missing file operand
Více informací získáte příkazem `install --help'.
./Makefile: line 17: INSTALL_PREFIX: command not found
./Makefile: line 17: MAN1: command not found
install: missing destination file operand after `rom.1'
Více informací získáte příkazem `install --help'.
./Makefile: line 19: main.o:: command not found
./Makefile: line 20: base64.o:: command not found
jajaj daco sa nepodarilo ale co? Poradi mi niekto? Toto uz fakt neviem co odomna chce, ale ak ma niekto nakopne ;)

Este obsah Makefile:
INSTALL_PREFIX=
MAN1=/usr/share/man/man1/

CFLAGS=-Wall -O2

all: main.o base64.o
        $(CC) $(CFLAGS) -o rom main.o base64.o

clean:
        @rm -f rom *.o core
install:
        install -d -m 755 $(INSTALL_PREFIX)/usr/sbin
        install -d -m 755 $(INSTALL_PREFIX)/etc/rom
        install -d -m 1755 $(INSTALL_PREFIX)/etc/rom/.rates
        install -m 755 rom $(INSTALL_PREFIX)/usr/sbin/
        install -d -m 755 $(INSTALL_PREFIX)$(MAN1)
        install -m 755 rom.1 $(INSTALL_PREFIX)$(MAN1)

main.o: main.c rom.h
base64.o: base64.c mime.h

HELP ME PLEASE :((
    • Re: Makefile 21.03.2007 | 17:03
      Avatar borg Arch, Debian jessie  Administrátor
      spust make a nie Makefile
      predtym si precitaj README a RELEASE_NOTES
      • Re: Makefile 21.03.2007 | 17:19
        jako   Návštevník
        napisem do command lajna make a vypise toto:
        bash: make: command not found
        precitam si README
        Welcome to Reply-o-Matic, the last auto software you will
        ever need (we hope).
        
        Please, take a look at the man to see how to use ROM,
        and also on the LICENSE file (hint: GPLv2).
        
        As of 0.8.0, the PARAMETERS and USAGE files does not exist anymore. All the
        information is now on the man.
        
        Also on 0.4.0, there is a new file called HEADERS, which explains
        some tricks ROM plays with message headers.
        
        ROM has been tested secure to the best of our knowledge, but
        keep in mind that this is still a beta release.
        
        Some notes about running ROM:
        
                - ROM can deliver as the body of the message any file. So beware
                  which user you run ROM as
                - ROM does not need any special privileges to run. So, we
                  recommend running it as a regular, unprivileged user
                - ROM needs a Mail Delivery Agent that is compatible with
                  sendmail's command line options (it call /usr/sbin/sendmail);
                  almost every MDA I can think of supports this, including
                  sendmail (duh!), exim (which I use), postfix and qmail
                - ROM has only been tested on Linux. But there are no reasons
                  it should not compile and run on any POSIX Unix system. It
                  probably will even compile on non-POSIX Unix systems. Let me
                  know if you try it on any non-Linux platform
        
        Security considerations:
        
                SEE MAN
        
        Contact:
                You can contact me (Rodrigo Barbosa) at rodrigob@darkover.org
        

        Nic podstatne k instalacii tam nie je tak skusim citat
        RELEASE_NOTES
        Release version: 1.4.3
        Last public release: 1.4.3
        
        This is the STABLE release 1.4.3 of Reply-O-Matic.
        
        Fixed some address recognition bugs
        
        See ChangeLog for more details and changes.
        

        tak isto ziadny postup nevidim :(

        pozrel som si aj changelog, starsie verzie nemam takze zatial nemam moc s cim porovnavat ;)

        ten Make mam spustis s cim?
        • Re: Makefile 21.03.2007 | 17:21
          Avatar uid0 Debian  Používateľ
          nainstaluj si make
          Debian. apt-get into it…
          • Re: Makefile 21.03.2007 | 17:31
            jako   Návštevník
            ty koki, to som netusil ze este aj make sa instaluje
            oki zase som o daco mudrejsi a az tak sprosty nezomriem ako mi ucitelky hovorievali :D

            apt-get install make
            hotovo
            som v adresari s reply-o-matic
            spustam make
            vysledok:
            cc -Wall -O2 -c -o main.o main.c
            make: cc: Command not found
            make: *** [main.o] Error 127

            to co chce po mne? :)
            • Re: Makefile 21.03.2007 | 17:34
              Avatar borg Arch, Debian jessie  Administrátor
              apt-get install build-essetial
              • Re: Makefile 21.03.2007 | 17:39
                jako   Návštevník
                pouzivam testing
                a taky balik neexistuje
                • Re: Makefile 21.03.2007 | 17:40
                  jako   Návštevník
                  aha to je asi preklep myslel si
                  apt-get install build-essential ?
                  uz ho instalujem...
                  • Re: Makefile 21.03.2007 | 17:42
                    Avatar borg Arch, Debian jessie  Administrátor
                    sorry, chybalo mi tam 'n'
                • Re: Makefile 21.03.2007 | 17:41
                  Avatar borg Arch, Debian jessie  Administrátor
                  fakt?
                  http://packages.debian.org/testing/devel/build-essential
                  • Re: Makefile 21.03.2007 | 17:43
                    jako   Návštevník
                    OK, mam to nainstalovane
                    spustam make
                    cc -Wall -O2   -c -o main.o main.c
                    main.c: In function ‘main’:
                    main.c:1227: warning: pointer targets in assignment differ in signedness
                    cc -Wall -O2   -c -o base64.o base64.c
                    cc -Wall -O2 -o rom main.o base64.o
                    

                    je tam jeden warning ale asi to zbehlo predpokladam co ty nato?
                    mam teraz spustit ten Makefile?
                    • Re: Makefile 21.03.2007 | 17:47
                      Avatar borg Arch, Debian jessie  Administrátor
                      standardne make install
                      • Re: Makefile 21.03.2007 | 17:50
                        jako   Návštevník
                        ok, davam make install
                        install -d -m 755 /usr/sbin
                        install -d -m 755 /etc/rom
                        install -d -m 1755 /etc/rom/.rates
                        install -m 755 rom /usr/sbin/
                        install -d -m 755 /usr/share/man/man1/
                        install -m 755 rom.1 /usr/share/man/man1/
                        

                        jupi tak toto je to kompilovanie???
                        A nie je to az take tazke :)

                        Dakujem mockrat
                        • Re: Makefile 21.03.2007 | 17:57
                          Avatar uid0 Debian  Používateľ
                          skvele, teraz daj make uninstall a potom checkinstall
                          Debian. apt-get into it…
                          • Re: Makefile 21.03.2007 | 18:03
                            jako   Návštevník
                            to fakt?
                            preco to mam odinstalovat?
                            • Re: Makefile 21.03.2007 | 18:10
                              Avatar borg Arch, Debian jessie  Administrátor
                              checkinstall nahradzuje krok s make install, tym ze vytvori deb balicek, ktory klasicky nainstalujes. odinstalovanie takeho programu je potom jednoduche v jednom kroku.
                              • Re: Makefile 21.03.2007 | 18:21
                                Avatar Igor Hlina Mac OS ML  Používateľ
                                Si mu to mal defaultne poradit :)
                                while (2*2 == 5) { echo "If you're reading this, something is definitely wrong"; }
                                • Re: Makefile 21.03.2007 | 18:51
                                  Avatar borg Arch, Debian jessie  Administrátor
                                  defaultne pouzivam make install ;)
                              • Re: Makefile 22.03.2007 | 01:25
                                jako   Návštevník
                                ked dam make checkinstall
                                make: *** No rule to make target `checkinstall'.  Stop.
                                

                                ale je pravda ze som predtym nedal make uninstall ale to by hadam nemalo vadit?
                                • Re: Makefile 22.03.2007 | 01:28
                                  Avatar borg Arch, Debian jessie  Administrátor
                                  nie make checkinstall ale iba checkinstall. a musis ho mat nainstalovany
                                  • Re: Makefile 22.03.2007 | 12:05
                                    jako   Návštevník
                                    aha,

                                    a v akom baliku najdem checkinstall
                                    • Re: Makefile 22.03.2007 | 12:23
                                      Avatar borg Arch, Debian jessie  Administrátor
                                      apt-get install checkinstall
                                      • Re: Makefile 22.03.2007 | 13:01
                                        jako   Návštevník
                                        to ma napadlo ale neslo mi to, ked to zadam
                                        apt-get install checkinstall
                                        Čtu seznamy balíků... Hotovo
                                        Vytvářím strom závislostí... Hotovo
                                        E: Nemohu najít balík checkinstall
                                        

                                        /etc/apt/sources:
                                        deb http://ftp.sk.debian.org/debian/ etch main
                                        deb-src http://ftp.sk.debian.org/debian/ etch main
                                        
                                        deb http://security.debian.org/ etch/updates main contrib
                                        deb-src http://security.debian.org/ etch/updates main contrib
                                        
                                        • Re: Makefile 22.03.2007 | 13:21
                                          Avatar borg Arch, Debian jessie  Administrátor
                                          apt-cache search checkinstall
                                          • Re: Makefile 22.03.2007 | 13:29
                                            jako   Návštevník
                                            no ked ho nemoze najst apt-get install

                                            tak pochybujem zo ho najde apt-cache search

                                            ale pre klud v dusi som to urobil, nenaslo mi nic... :(
                                            • Re: Makefile 22.03.2007 | 13:42
                                              Avatar borg Arch, Debian jessie  Administrátor
                                              je len v unstable
                                              • Re: Makefile 22.03.2007 | 15:34
                                                Avatar uid0 Debian  Používateľ
                                                http://packages.debian.org/cgi-bin/search_packages.pl?suite=all&subword=1&exact=&arch=any&section=all&case=insensitive&keywords=checkinstall&searchon=all

                                                vraj stable a unstable. ale verziou v stable by som sa uz nezapodieval...
                                                Debian. apt-get into it…
                                                • Re: Makefile 22.03.2007 | 15:59
                                                  jako   Návštevník
                                                  aha dik...
                • Re: Makefile 21.03.2007 | 17:45
                  Avatar gUbA Ubuntu, Debian  Používateľ
                  synaptic
                  sudo apt-get remove windows
                  • Re: Makefile 21.03.2007 | 17:47
                    jako   Návštevník
                    co synaptic? nechapem...
                    inak, pribudol mi v adresari spustitelny subor rom, vyzera ze uz nie som panic :)
                    Tak toto bolo maje celkom tenkrat poprve kompilovanie :) A naco je tam to Makefile?