How I can increase size of stack in assembly (NASM OS X intel64)

I used .STACK 4096 before section .data but return this error

error: attempt to define a local label before any non-local labels

 error: parser: instruction expected

Please guide me.

This is dependant on a number of things, but from this it looks like you can just flag the linker.

May I ask why you're trying to change the stack size? Generally speaking, there is a way around increasing the stack size.