Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChicagoBoss Mac: make: *** [app] Error 64 #676

Open
Mcowans opened this issue Nov 6, 2017 · 3 comments
Open

ChicagoBoss Mac: make: *** [app] Error 64 #676

Mcowans opened this issue Nov 6, 2017 · 3 comments

Comments

@Mcowans
Copy link

Mcowans commented Nov 6, 2017

Hello I am new to ChicagoBoss and Erlang, we are currently going over it in class and I can't seem to figure out my current error. After downloading Chicago boss and going through the 60 QuickStart I'm having trouble after the make app PROJECT=mynewproject every time I enter that into terminal I get an error
Matts-MacBook-Pro:ChicagoBoss matt$ make app PROJECT=cmatts_erl ==> ChicagoBoss (create) ERROR: One or more files already exist on disk and were not generated: * "../cmatts_erl/Makefile" * "../cmatts_erl/rebar.config" * "../cmatts_erl/start-server.bat" * "../cmatts_erl/src/cmatts_erl.app.src" * "../cmatts_erl/src/view/lib/tag_modules/cmatts_erl_custom_tags.erl" * "../cmatts_erl/src/view/lib/filter_modules/cmatts_erl_custom_filters.erl" * "../cmatts_erl/boss.config" * "../cmatts_erl/src/mail/cmatts_erl_outgoing_mail_controller.erl" * "../cmatts_erl/src/mail/cmatts_erl_incoming_mail_controller.erl" * "../cmatts_erl/priv/init/cmatts_erl_01_news.erl" * "../cmatts_erl/priv/static/chicago-boss.png" * "../cmatts_erl/priv/static/favicon.ico" * "../cmatts_erl/priv/cmatts_erl.routes" * "../cmatts_erl/priv/rebar/boss_plugin.erl" * "../cmatts_erl/src/view/lib/README" * "../cmatts_erl/init.sh" * "../cmatts_erl/init-dev.sh" * "../cmatts_erl/rebar" * "../cmatts_erl/rebar.cmd" To force overwriting, specify -f/--force/force=1 on the command line. usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory make: *** [app] Error 64
I'm sure its probably something simple, again I very new to this language
Any help with be greatly appreciated

Thanks

@7stud
Copy link

7stud commented Feb 23, 2018

I think you already created your project correctly because the error is saying that the files for your project already exist. The error says that ChicagoBoss will not overwrite those files unless you explicitly tell ChicgoBoss to do that, and the error tells you the command that will make ChicagoBoss overwrite the existing files. Instead, you should just cd up one directory where you will find your project:

$ cd ..
$ ls

The ls command will display a list of all the files/directories in the directory, and you should be able to see cmatts_erl in the list. If so, cd into that directory:

$ cd cmatts_erl

I tried creating a project that already exists, and I got an error similar to the one you get. I'm using a Macbook Pro as well and creating a project works fine for me

When you successfully created your project, you should have seen the output:

~/chicago_boss_apps/ChicagoBoss$ make app PROJECT=cmatts_erl
WARN:  Ignoring sub_dirs for /Users/7stud/chicago_boss_apps/ChicagoBoss/deps/ddb
==> ChicagoBoss (create)
Writing ../cmatts_erl/Makefile
Writing ../cmatts_erl/rebar.config
Writing ../cmatts_erl/start-server.bat
Writing ../cmatts_erl/src/cmatts_erl.app.src
Writing ../cmatts_erl/src/view/lib/tag_modules/cmatts_erl_custom_tags.erl
Writing ../cmatts_erl/src/view/lib/filter_modules/cmatts_erl_custom_filters.erl
Writing ../cmatts_erl/boss.config
Writing ../cmatts_erl/src/mail/cmatts_erl_outgoing_mail_controller.erl
Writing ../cmatts_erl/src/mail/cmatts_erl_incoming_mail_controller.erl
Writing ../cmatts_erl/priv/init/cmatts_erl_01_news.erl
Writing ../cmatts_erl/priv/static/chicago-boss.png
Writing ../cmatts_erl/priv/static/favicon.ico
Writing ../cmatts_erl/priv/cmatts_erl.routes
Writing ../cmatts_erl/priv/rebar/boss_plugin.erl
Writing ../cmatts_erl/src/view/lib/README
Writing ../cmatts_erl/init.sh
Writing ../cmatts_erl/init-dev.sh
Writing ../cmatts_erl/rebar
Writing ../cmatts_erl/rebar.cmd

***********************************************************************

Your new app is created. You should head over there now:

    cd ../cmatts_erl

***********************************************************************

~/chicago_boss_apps/ChicagoBoss$ 

Try it: create another app called my_test. Your Macbook won't blow up.

@chinitadelrey
Copy link

Piggybacking off this.

My make app output matches your successful one line by line except for last line: Error 64!

Is this a bug or something hidden missing in the app?
Thank you!

AnnJies-Mac:ChicagoBoss annjie$ make app PROJECT=testproject
==> ChicagoBoss (create)
Writing ../testproject/Makefile
Writing ../testproject/rebar.config
Writing ../testproject/start-server.bat
Writing ../testproject/src/testproject.app.src
Writing ../testproject/src/view/lib/tag_modules/testproject_custom_tags.erl
Writing ../testproject/src/view/lib/filter_modules/testproject_custom_filters.erl
Writing ../testproject/boss.config
Writing ../testproject/src/mail/testproject_outgoing_mail_controller.erl
Writing ../testproject/src/mail/testproject_incoming_mail_controller.erl
Writing ../testproject/priv/init/testproject_01_news.erl
Writing ../testproject/priv/static/chicago-boss.png
Writing ../testproject/priv/static/favicon.ico
Writing ../testproject/priv/testproject.routes
Writing ../testproject/priv/rebar/boss_plugin.erl
Writing ../testproject/src/view/lib/README
Writing ../testproject/init.sh
Writing ../testproject/init-dev.sh
Writing ../testproject/rebar
Writing ../testproject/rebar.cmd
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
make: *** [app] Error 64'''

@chinitadelrey
Copy link

chinitadelrey commented Mar 24, 2018

update - Here's the error I get when I try to initialize.

Ann-jies-Mac:test annjie$ ./init-dev.sh
ERROR: boss failed while processing /file_path/test: {'EXIT',
    {undef,
        [{boss_rebar,init_conf,
             [[{boss,
                   [{path,"./deps/boss"},
                    {applications,[test]},
                    {assume_locale,"en"},
                    {db_host,"localhost"},
                    {db_port,1978},
                    {db_adapter,mock},
                    {session_adapter,mock},
                    {session_key,"_boss_session"},
                    {session_exp_time,525600},
                    {session_cookie_http_only,true},
                    {session_cookie_secure,false},
                    {template_tag_modules,[]},
                    {template_filter_modules,[]},
                    {template_auto_escape,true},
                    {dummy,true}]},
               {tinymq,[]},
               {lager,
                   [{handlers,
                        [{lager_console_backend,info},
                         {lager_file_backend,
                             [{"log/error.log",error,10485760,"$D0",5},
                              {"log/console.log",info,10485760,"$D0",5}]}]},
                    {dummy,true}]},
               {simple_bridge,
                   [{server_name,boss_webserver},
                    {handler,boss_simple_bridge_handler},
                    {backend,cowboy},
                    {address,"127.0.0.1"},
                    {port,8001},
                    {document_root,"./priv/static"},
                    {static_paths,["js/"]},
                    {max_post_size,100},
                    {max_file_size,100},
                    {max_file_in_memory_size,0},
                    {scratch_dir,"./scratch"},
                    {cowboy_dispatch_fun,
                        {boss_cowboy_dispacher,build_and_compile}},
                    {dummy,true}]},
               {test,[{path,"../test"},{base_url,"/"},{dummy,true}]}]],
             []},
         {boss_plugin,init,3,[{file,"priv/rebar/boss_plugin.erl"},{line,92}]},
         {boss_plugin,boss,2,[{file,"priv/rebar/boss_plugin.erl"},{line,32}]},
         {rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,493}]},
         {rebar_core,execute,6,[{file,"src/rebar_core.erl"},{line,418}]},
         {rebar_core,maybe_execute,8,[{file,"src/rebar_core.erl"},{line,302}]},
         {rebar_core,process_dir1,7,[{file,"src/rebar_core.erl"},{line,261}]},
         {rebar_core,process_commands,2,
             [{file,"src/rebar_core.erl"},{line,93}]}]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants