There are two basic problems with that circuit.
- You are applying a positive voltage to an inverting configuration. The op-amp needs to provide a negative output value n response for which it needs a negative supply.
- you don’t have a dc feedback pathway. Without DC feedback (1) your op-amp operating point is not defined and (2) op-amp bias currents will be integrated driving the output even with no input.
To fix the former, either use a negative supply, or bias the positive input above ground.
If this is the totality of your circuit, to fix the latter, add a large resistor in parallel with the capacitor which effectively turns the configuration into a low-pass filter. This behaves as an integrator for signals above the cut-off frequency.
DC integrators require additional circuitry to set their DC bias. Either switches that periodically discharge the capacitor, or external circuitry that reacts to the output and changes the input accordingly (e.g., in an oscillator configuration).